mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-31 07:59:27 +02:00
remove some unused things
This commit is contained in:
parent
d079de75b1
commit
617ac20e7f
@ -58,8 +58,6 @@ for shared and private configs - which need to move out.
|
||||
|
||||
#include <unordered_map>
|
||||
|
||||
using ProviderMap = std::unordered_map<wxString, wxArrayString>;
|
||||
|
||||
// ============================================================================
|
||||
//
|
||||
//
|
||||
|
36
src/Snap.cpp
36
src/Snap.cpp
@ -364,42 +364,6 @@ SnapResults SnapManager::Snap
|
||||
return labels;
|
||||
}
|
||||
|
||||
/* static */ wxArrayString SnapManager::GetSnapValues()
|
||||
{
|
||||
wxArrayString values;
|
||||
|
||||
values.Add(wxT("Off"));
|
||||
values.Add(wxT("Nearest"));
|
||||
values.Add(wxT("Prior"));
|
||||
|
||||
return values;
|
||||
}
|
||||
|
||||
/* static */ const wxString & SnapManager::GetSnapValue(int index)
|
||||
{
|
||||
wxArrayString values = SnapManager::GetSnapValues();
|
||||
|
||||
if (index >= 0 && index < (int) values.GetCount())
|
||||
{
|
||||
return values[index];
|
||||
}
|
||||
|
||||
return values[SNAP_OFF];
|
||||
}
|
||||
|
||||
/* static */ int SnapManager::GetSnapIndex(const wxString & value)
|
||||
{
|
||||
wxArrayString values = SnapManager::GetSnapValues();
|
||||
int index = values.Index(value);
|
||||
|
||||
if (index != wxNOT_FOUND)
|
||||
{
|
||||
return index;
|
||||
}
|
||||
|
||||
return SNAP_OFF;
|
||||
}
|
||||
|
||||
#include "AColor.h"
|
||||
|
||||
void SnapManager::Draw( wxDC *dc, wxInt64 snap0, wxInt64 snap1 )
|
||||
|
@ -103,9 +103,6 @@ public:
|
||||
bool rightEdge);
|
||||
|
||||
static wxArrayString GetSnapLabels();
|
||||
static wxArrayString GetSnapValues();
|
||||
static const wxString & GetSnapValue(int index);
|
||||
static int GetSnapIndex(const wxString & value);
|
||||
|
||||
// The two coordinates need not be ordered:
|
||||
static void Draw( wxDC *dc, wxInt64 snap0, wxInt64 snap1 );
|
||||
|
@ -25,7 +25,6 @@ enum teWrappedType
|
||||
};
|
||||
|
||||
class wxString;
|
||||
class wxArrayString;
|
||||
class ShuttlePrefs;
|
||||
|
||||
class AUDACITY_DLL_API WrappedType
|
||||
|
@ -333,7 +333,6 @@ void LadspaEffectsModule::DeleteInstance(ComponentInterface *instance)
|
||||
wxArrayString LadspaEffectsModule::GetSearchPaths()
|
||||
{
|
||||
wxArrayString pathList;
|
||||
wxArrayString files;
|
||||
wxString pathVar;
|
||||
|
||||
// Check for the LADSPA_PATH environment variable
|
||||
|
Loading…
x
Reference in New Issue
Block a user