mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
Remove some unused functions and forward declarations
This commit is contained in:
@@ -27,7 +27,6 @@ small calculations of rectangles.
|
||||
#include <wx/toplevel.h>
|
||||
#include <wx/dcscreen.h>
|
||||
#include <wx/dcmemory.h>
|
||||
#include <wx/menu.h>
|
||||
#include <wx/settings.h>
|
||||
#include <wx/bitmap.h>
|
||||
#include <wx/valgen.h>
|
||||
@@ -363,43 +362,6 @@ bool ScreenshotCommand::CaptureDock(
|
||||
return Capture(context, FileName, win, wxRect(x, y, width, height));
|
||||
}
|
||||
|
||||
void ExploreMenu(
|
||||
const CommandContext & context,
|
||||
wxMenu * pMenu, int Id, int depth ){
|
||||
static_cast<void>(Id);//compiler food.
|
||||
|
||||
if( !pMenu )
|
||||
return;
|
||||
|
||||
wxMenuItemList list = pMenu->GetMenuItems();
|
||||
size_t lcnt = list.size();
|
||||
wxMenuItem * item;
|
||||
wxString Label;
|
||||
wxString Accel;
|
||||
|
||||
for (size_t lndx = 0; lndx < lcnt; lndx++) {
|
||||
item = list.Item(lndx)->GetData();
|
||||
Label = item->GetItemLabelText();
|
||||
Accel = item->GetItemLabel();
|
||||
if( Accel.Contains("\t") )
|
||||
Accel = Accel.AfterLast('\t');
|
||||
else
|
||||
Accel = "";
|
||||
if( item->IsSeparator() )
|
||||
Label = "----";
|
||||
int flags = 0;
|
||||
if (item->IsSubMenu())
|
||||
flags +=1;
|
||||
if (item->IsCheck() && item->IsChecked())
|
||||
flags +=2;
|
||||
|
||||
if (item->IsSubMenu()) {
|
||||
pMenu = item->GetSubMenu();
|
||||
ExploreMenu( context, pMenu, item->GetId(), depth+1 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Handed a dialog, which it is given the option to capture.
|
||||
bool ScreenshotCommand::MayCapture( wxDialog * pDlg )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user