From 1a26edc869efa39957bb8742fe46a5ba96cd4a3a Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Thu, 20 Jan 2011 05:56:59 +0000 Subject: [PATCH] Delete FrameMain::SynchronizeProject as the last use of it was removed in r5207 Originally committed to SVN as r5244. --- aegisub/src/frame_main.cpp | 28 ---------------------------- aegisub/src/frame_main.h | 1 - 2 files changed, 29 deletions(-) diff --git a/aegisub/src/frame_main.cpp b/aegisub/src/frame_main.cpp index 846a11847..569f9eab1 100644 --- a/aegisub/src/frame_main.cpp +++ b/aegisub/src/frame_main.cpp @@ -553,34 +553,6 @@ void FrameMain::UpdateTitle() { if (GetTitle() != newTitle) SetTitle(newTitle); } -/// @brief Updates subs with video/whatever data -/// @param fromSubs -void FrameMain::SynchronizeProject() { - // Store data on ass - wxString seekpos = _T("0"); - wxString ar = _T("0"); - wxString zoom = _T("6"); - if (context->videoController->IsLoaded()) { - seekpos = wxString::Format(_T("%i"),context->videoController->GetFrameN()); - zoom = wxString::Format(_T("%f"),videoBox->videoDisplay->GetZoom()); - - int arType = context->videoController->GetAspectRatioType(); - if (arType == 4) ar = wxString(_T("c")) + AegiFloatToString(context->videoController->GetAspectRatioValue()); - else ar = wxString::Format(_T("%i"),arType); - } - - // Store audio data - context->ass->SetScriptInfo(_T("Audio URI"),MakeRelativePath(context->audioController->GetAudioURL(),context->ass->filename)); - - // Store video data - context->ass->SetScriptInfo(_T("Video File"),MakeRelativePath(context->videoController->videoName,context->ass->filename)); - context->ass->SetScriptInfo(_T("Video Aspect Ratio"),ar); - context->ass->SetScriptInfo(_T("Video Zoom Percent"),zoom); - context->ass->SetScriptInfo(_T("Video Position"),seekpos); - context->ass->SetScriptInfo(_T("VFR File"),MakeRelativePath(context->videoController->GetTimecodesName(),context->ass->filename)); - context->ass->SetScriptInfo(_T("Keyframes File"),MakeRelativePath(context->videoController->GetKeyFramesName(),context->ass->filename)); -} - void FrameMain::OnVideoOpen() { if (!context->videoController->IsLoaded()) { SetDisplayMode(0, -1); diff --git a/aegisub/src/frame_main.h b/aegisub/src/frame_main.h index 9526614dd..825a5b37d 100644 --- a/aegisub/src/frame_main.h +++ b/aegisub/src/frame_main.h @@ -152,7 +152,6 @@ private: int TryToCloseSubs(bool enableCancel=true); void RebuildRecentList(const char *root_command, const char *mru_name); - void SynchronizeProject(); // AudioControllerAudioEventListener implementation void OnAudioOpen(AudioProvider *provider);