Remove some unused locals in frame_main_events.cpp that were last used in r106.

Originally committed to SVN as r3800.
This commit is contained in:
Thomas Goyne 2009-11-17 02:43:43 +00:00
parent feb77217c7
commit 9ff7c6abbb
1 changed files with 8 additions and 24 deletions

View File

@ -1276,13 +1276,9 @@ void FrameMain::OnAutomationMacro (wxCommandEvent &event) {
/// @param event /// @param event
/// ///
void FrameMain::OnSnapSubsStartToVid (wxCommandEvent &event) { void FrameMain::OnSnapSubsStartToVid (wxCommandEvent &event) {
if (VideoContext::Get()->IsLoaded()) { if (VideoContext::Get()->IsLoaded() && SubsBox->GetSelection().Count() > 0) {
wxArrayInt sel = SubsBox->GetSelection();
if (sel.Count() > 0) {
wxCommandEvent dummy;
SubsBox->SetSubsToVideo(true); SubsBox->SetSubsToVideo(true);
} }
}
} }
@ -1290,13 +1286,9 @@ void FrameMain::OnSnapSubsStartToVid (wxCommandEvent &event) {
/// @param event /// @param event
/// ///
void FrameMain::OnSnapSubsEndToVid (wxCommandEvent &event) { void FrameMain::OnSnapSubsEndToVid (wxCommandEvent &event) {
if (VideoContext::Get()->IsLoaded()) { if (VideoContext::Get()->IsLoaded() && SubsBox->GetSelection().Count() > 0) {
wxArrayInt sel = SubsBox->GetSelection();
if (sel.Count() > 0) {
wxCommandEvent dummy;
SubsBox->SetSubsToVideo(false); SubsBox->SetSubsToVideo(false);
} }
}
} }
@ -1305,13 +1297,9 @@ void FrameMain::OnSnapSubsEndToVid (wxCommandEvent &event) {
/// @param event /// @param event
/// ///
void FrameMain::OnSnapVidToSubsStart (wxCommandEvent &event) { void FrameMain::OnSnapVidToSubsStart (wxCommandEvent &event) {
if (VideoContext::Get()->IsLoaded()) { if (VideoContext::Get()->IsLoaded() && SubsBox->GetSelection().Count() > 0) {
wxArrayInt sel = SubsBox->GetSelection();
if (sel.Count() > 0) {
wxCommandEvent dummy;
SubsBox->SetVideoToSubs(true); SubsBox->SetVideoToSubs(true);
} }
}
} }
@ -1319,13 +1307,9 @@ void FrameMain::OnSnapVidToSubsStart (wxCommandEvent &event) {
/// @param event /// @param event
/// ///
void FrameMain::OnSnapVidToSubsEnd (wxCommandEvent &event) { void FrameMain::OnSnapVidToSubsEnd (wxCommandEvent &event) {
if (VideoContext::Get()->IsLoaded()) { if (VideoContext::Get()->IsLoaded() && SubsBox->GetSelection().Count() > 0) {
wxArrayInt sel = SubsBox->GetSelection();
if (sel.Count() > 0) {
wxCommandEvent dummy;
SubsBox->SetVideoToSubs(false); SubsBox->SetVideoToSubs(false);
} }
}
} }