mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-19 17:11:12 +02:00
Leave arguments anonymous, remove unused variables in menu code...
... history window updates itself in response to events. The intention was to eliminate all mention of it in edit menu code.
This commit is contained in:
@@ -218,7 +218,6 @@ void DoUndo(AudacityProject &project)
|
||||
{
|
||||
auto trackPanel = project.GetTrackPanel();
|
||||
auto &undoManager = *project.GetUndoManager();
|
||||
//auto historyWindow = project.GetHistoryWindow();
|
||||
|
||||
if (!project.UndoAvailable()) {
|
||||
AudacityMessageBox(_("Nothing to undo"));
|
||||
@@ -254,7 +253,6 @@ void OnRedo(const CommandContext &context)
|
||||
auto &project = context.project;
|
||||
auto trackPanel = project.GetTrackPanel();
|
||||
auto &undoManager = *project.GetUndoManager();
|
||||
//auto historyWindow = project.GetHistoryWindow();
|
||||
|
||||
if (!project.RedoAvailable()) {
|
||||
AudacityMessageBox(_("Nothing to redo"));
|
||||
@@ -282,7 +280,6 @@ void OnCut(const CommandContext &context)
|
||||
auto trackPanel = project.GetTrackPanel();
|
||||
auto &selectedRegion = project.GetViewInfo().selectedRegion;
|
||||
auto ruler = project.GetRulerPanel();
|
||||
//auto historyWindow = project.GetHistoryWindow();
|
||||
|
||||
// This doesn't handle cutting labels, it handles
|
||||
// cutting the _text_ inside of labels, i.e. if you're
|
||||
@@ -392,7 +389,6 @@ void OnCopy(const CommandContext &context)
|
||||
auto tracks = project.GetTracks();
|
||||
auto trackPanel = project.GetTrackPanel();
|
||||
auto &selectedRegion = project.GetViewInfo().selectedRegion;
|
||||
//auto historyWindow = project.GetHistoryWindow();
|
||||
|
||||
for (auto lt : tracks->Selected< LabelTrack >()) {
|
||||
if (lt->CopySelectedText()) {
|
||||
@@ -723,7 +719,6 @@ void OnSplitCut(const CommandContext &context)
|
||||
auto &project = context.project;
|
||||
auto tracks = project.GetTracks();
|
||||
auto &selectedRegion = project.GetViewInfo().selectedRegion;
|
||||
//auto historyWindow = project.GetHistoryWindow();
|
||||
|
||||
AudacityProject::ClearClipboard();
|
||||
|
||||
@@ -1078,9 +1073,8 @@ static CommandHandlerObject &findCommandHandler(AudacityProject &) {
|
||||
|
||||
MenuTable::BaseItemPtr LabelEditMenus( AudacityProject &project );
|
||||
|
||||
MenuTable::BaseItemPtr EditMenu( AudacityProject &project )
|
||||
MenuTable::BaseItemPtr EditMenu( AudacityProject & )
|
||||
{
|
||||
(void)project;// Compiler food
|
||||
using namespace MenuTable;
|
||||
using Options = CommandManager::Options;
|
||||
|
||||
|
@@ -141,9 +141,8 @@ AudacityProject *DoImportMIDI(
|
||||
|
||||
struct Handler : CommandHandlerObject {
|
||||
|
||||
void OnNew(const CommandContext &context )
|
||||
void OnNew(const CommandContext & )
|
||||
{
|
||||
(void)context;// Compiler food
|
||||
CreateNewAudacityProject();
|
||||
}
|
||||
|
||||
|
@@ -573,9 +573,8 @@ static CommandHandlerObject &findCommandHandler(AudacityProject &) {
|
||||
static_cast<CommandFunctorPointer>(& LabelEditActions::Handler :: X)
|
||||
#define XXO(X) _(X), wxString{X}.Contains("...")
|
||||
|
||||
MenuTable::BaseItemPtr LabelEditMenus( AudacityProject &project )
|
||||
MenuTable::BaseItemPtr LabelEditMenus( AudacityProject & )
|
||||
{
|
||||
(void)project;//Compiler food
|
||||
using namespace MenuTable;
|
||||
using Options = CommandManager::Options;
|
||||
|
||||
|
Reference in New Issue
Block a user