mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-20 17:41:13 +02:00
Remove unused functions CommandManager::AddCommand
This commit is contained in:
@@ -591,32 +591,6 @@ void CommandManager::AddItemList(const CommandID & name,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
|
||||||
/// Add a command that doesn't appear in a menu. When the key is pressed, the
|
|
||||||
/// given function pointer will be called (via the CommandManagerListener)
|
|
||||||
void CommandManager::AddCommand(const CommandID &name,
|
|
||||||
const wxChar *label,
|
|
||||||
CommandHandlerFinder finder,
|
|
||||||
CommandFunctorPointer callback,
|
|
||||||
CommandFlag flags)
|
|
||||||
{
|
|
||||||
AddCommand(name, label, finder, callback, wxT(""), flags);
|
|
||||||
}
|
|
||||||
|
|
||||||
void CommandManager::AddCommand(const CommandID &name,
|
|
||||||
const wxChar *label_in,
|
|
||||||
CommandHandlerFinder finder,
|
|
||||||
CommandFunctorPointer callback,
|
|
||||||
const wxChar *accel,
|
|
||||||
CommandFlag flags)
|
|
||||||
{
|
|
||||||
wxASSERT( flags != NoFlagsSpecified );
|
|
||||||
|
|
||||||
NewIdentifier(name, label_in, label_in, false, accel, NULL, finder, callback, {}, 0, 0, false, {});
|
|
||||||
|
|
||||||
SetCommandFlags(name, flags);
|
|
||||||
}
|
|
||||||
|
|
||||||
void CommandManager::AddGlobalCommand(const CommandID &name,
|
void CommandManager::AddGlobalCommand(const CommandID &name,
|
||||||
const wxChar *label_in,
|
const wxChar *label_in,
|
||||||
bool hasDialog,
|
bool hasDialog,
|
||||||
|
@@ -192,21 +192,6 @@ class AUDACITY_DLL_API CommandManager final
|
|||||||
|
|
||||||
void AddSeparator();
|
void AddSeparator();
|
||||||
|
|
||||||
// A command doesn't actually appear in a menu but might have a
|
|
||||||
// keyboard shortcut.
|
|
||||||
void AddCommand(const CommandID &name,
|
|
||||||
const wxChar *label,
|
|
||||||
CommandHandlerFinder finder,
|
|
||||||
CommandFunctorPointer callback,
|
|
||||||
CommandFlag flags);
|
|
||||||
|
|
||||||
void AddCommand(const CommandID &name,
|
|
||||||
const wxChar *label,
|
|
||||||
CommandHandlerFinder finder,
|
|
||||||
CommandFunctorPointer callback,
|
|
||||||
const wxChar *accel,
|
|
||||||
CommandFlag flags);
|
|
||||||
|
|
||||||
void PopMenuBar();
|
void PopMenuBar();
|
||||||
void BeginOccultCommands();
|
void BeginOccultCommands();
|
||||||
void EndOccultCommands();
|
void EndOccultCommands();
|
||||||
|
Reference in New Issue
Block a user