mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 15:53:52 +02:00
Remove unused overload of ShuttleGuiBase::TieTextBox...
... No need to tie a double-default-valued checkbox that is NOT numeric.
This commit is contained in:
@@ -1833,24 +1833,6 @@ wxTextCtrl * ShuttleGuiBase::TieNumericTextBox(
|
||||
if( DoStep(3) ) DoDataShuttle( SettingName, WrappedRef );
|
||||
return pText;
|
||||
}
|
||||
/// Variant of the standard TieTextBox which does the two step exchange
|
||||
/// between gui and stack variable and stack variable and shuttle.
|
||||
/// This one does it for double values...
|
||||
wxTextCtrl * ShuttleGuiBase::TieTextBox(
|
||||
const wxString & Prompt,
|
||||
const wxString & SettingName,
|
||||
const double & Default,
|
||||
const int nChars)
|
||||
{
|
||||
wxTextCtrl * pText=(wxTextCtrl*)NULL;
|
||||
|
||||
double Temp = Default;
|
||||
WrappedType WrappedRef( Temp );
|
||||
if( DoStep(1) ) DoDataShuttle( SettingName, WrappedRef );
|
||||
if( DoStep(2) ) pText = TieTextBox( Prompt, WrappedRef, nChars );
|
||||
if( DoStep(3) ) DoDataShuttle( SettingName, WrappedRef );
|
||||
return pText;
|
||||
}
|
||||
|
||||
/// Variant of the standard TieTextBox which does the two step exchange
|
||||
/// between gui and stack variable and stack variable and shuttle.
|
||||
@@ -2537,20 +2519,6 @@ wxTextCtrl * ShuttleGuiGetDefinition::TieTextBox(
|
||||
EndStruct();
|
||||
return ShuttleGui::TieTextBox( Prompt, SettingName, Default, nChars );
|
||||
}
|
||||
wxTextCtrl * ShuttleGuiGetDefinition::TieTextBox(
|
||||
const wxString & Prompt,
|
||||
const wxString & SettingName,
|
||||
const double & Default,
|
||||
const int nChars)
|
||||
{
|
||||
StartStruct();
|
||||
AddItem( SettingName, "id" );
|
||||
AddItem( Prompt, "prompt" );
|
||||
AddItem( "string", "type" );
|
||||
AddItem( Default, "default" );
|
||||
EndStruct();
|
||||
return ShuttleGui::TieTextBox( Prompt, SettingName, Default, nChars );
|
||||
}
|
||||
wxTextCtrl * ShuttleGuiGetDefinition::TieNumericTextBox(
|
||||
const wxString &Prompt,
|
||||
const wxString &SettingName,
|
||||
|
||||
@@ -255,11 +255,6 @@ public:
|
||||
const wxString &SettingName,
|
||||
const wxString &Default,
|
||||
const int nChars);
|
||||
virtual wxTextCtrl * TieTextBox(
|
||||
const wxString & Prompt,
|
||||
const wxString & SettingName,
|
||||
const double & Default,
|
||||
const int nChars);
|
||||
virtual wxTextCtrl * TieNumericTextBox(
|
||||
const wxString &Prompt,
|
||||
const wxString &SettingName,
|
||||
@@ -472,11 +467,6 @@ public:
|
||||
const wxString &SettingName,
|
||||
const wxString &Default,
|
||||
const int nChars) override;
|
||||
wxTextCtrl * TieTextBox(
|
||||
const wxString & Prompt,
|
||||
const wxString & SettingName,
|
||||
const double & Default,
|
||||
const int nChars) override;
|
||||
wxTextCtrl * TieNumericTextBox(
|
||||
const wxString &Prompt,
|
||||
const wxString &SettingName,
|
||||
|
||||
Reference in New Issue
Block a user