From 364f398c5ffe9768e8636ae1bd13fec37d8d961d Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Thu, 30 Dec 2010 22:19:18 +0000 Subject: [PATCH] Kill VideoContext::keyframesRevision, which is no longer used Originally committed to SVN as r5067. --- aegisub/src/video_context.cpp | 4 ---- aegisub/src/video_context.h | 5 ----- 2 files changed, 9 deletions(-) diff --git a/aegisub/src/video_context.cpp b/aegisub/src/video_context.cpp index 67eac055f..fc9b59092 100644 --- a/aegisub/src/video_context.cpp +++ b/aegisub/src/video_context.cpp @@ -134,7 +134,6 @@ void VideoContext::Reset() { keyFrames.clear(); videoFPS = agi::vfr::Framerate(); - keyframesRevision++; // Remove video data frame_n = 0; @@ -469,12 +468,10 @@ void VideoContext::LoadKeyframes(wxString filename) { catch (...) { wxMessageBox(_T("Unknown error"), _T("Error opening keyframes file"), wxOK | wxICON_ERROR, NULL); } - keyframesRevision++; } void VideoContext::SaveKeyframes(wxString filename) { KeyFrameFile::Save(filename, GetKeyFrames()); - keyframesRevision++; } void VideoContext::CloseKeyframes() { @@ -486,7 +483,6 @@ void VideoContext::CloseKeyframes() { keyFrames.clear(); } KeyframesOpen(keyFrames); - keyframesRevision++; } void VideoContext::LoadTimecodes(wxString filename) { diff --git a/aegisub/src/video_context.h b/aegisub/src/video_context.h index abff82a22..f8c2c31d3 100644 --- a/aegisub/src/video_context.h +++ b/aegisub/src/video_context.h @@ -102,10 +102,6 @@ private: /// DOCME wxString keyFramesFilename; - /// Revision counter for keyframes, when the set of keyframes is changed this number changes - int keyframesRevision; - - /// DOCME wxMutex playMutex; @@ -270,7 +266,6 @@ public: void CloseKeyframes(); bool OverKeyFramesLoaded() const { return !keyFramesFilename.empty(); } bool KeyFramesLoaded() const { return !keyFrames.empty(); } - int GetKeyframesRevision() const { return keyframesRevision; } wxString GetTimecodesName() const { return ovrTimecodeFile; } void LoadTimecodes(wxString filename);