diff --git a/src/menus/EditMenus.cpp b/src/menus/EditMenus.cpp index af899fc5b..395cc536b 100644 --- a/src/menus/EditMenus.cpp +++ b/src/menus/EditMenus.cpp @@ -730,7 +730,6 @@ void OnSilence(const CommandContext &context) { auto &project = context.project; auto &tracks = TrackList::Get( project ); - auto &trackPanel = TrackPanel::Get( project ); auto &selectedRegion = ViewInfo::Get( project ).selectedRegion; for ( auto n : tracks.Selected< WaveTrack >() ) @@ -772,7 +771,6 @@ void OnSplit(const CommandContext &context) { auto &project = context.project; auto &tracks = TrackList::Get( project ); - auto &trackPanel = TrackPanel::Get( project ); auto &selectedRegion = ViewInfo::Get( project ).selectedRegion; double sel0 = selectedRegion.t0(); diff --git a/src/menus/LabelMenus.cpp b/src/menus/LabelMenus.cpp index ab55381c7..02ea68078 100644 --- a/src/menus/LabelMenus.cpp +++ b/src/menus/LabelMenus.cpp @@ -451,7 +451,6 @@ void OnSplitDeleteLabels(const CommandContext &context) void OnSilenceLabels(const CommandContext &context) { auto &project = context.project; - auto &trackPanel = TrackPanel::Get( project ); auto &tracks = TrackList::Get( project ); auto &selectedRegion = ViewInfo::Get( project ).selectedRegion; @@ -470,7 +469,6 @@ void OnSilenceLabels(const CommandContext &context) void OnCopyLabels(const CommandContext &context) { auto &project = context.project; - auto &trackPanel = TrackPanel::Get( project ); auto &tracks = TrackList::Get( project ); auto &selectedRegion = ViewInfo::Get( project ).selectedRegion;