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);