1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-26 03:06:15 +02:00

Give adjustInput() an empty default implementation and remove empty overrides.

Again a slight reduction in binary size.
This commit is contained in:
Maarten ter Huurne 2010-07-28 01:52:05 +02:00
parent d1d55a7666
commit 44bed79d5c
8 changed files with 5 additions and 12 deletions

View File

@ -42,6 +42,10 @@ void MenuSetting::handleTS()
buttonBox.handleTS();
}
void MenuSetting::adjustInput()
{
}
void MenuSetting::drawSelected(int /*y*/)
{
buttonBox.paint(5);

View File

@ -50,7 +50,7 @@ public:
virtual void handleTS();
virtual void manageInput() = 0;
virtual void adjustInput() = 0;
virtual void adjustInput();
virtual void drawSelected(int y);
virtual bool edited() = 0;

View File

@ -91,8 +91,6 @@ bool MenuSettingBool::value()
return *_value;
}
void MenuSettingBool::adjustInput() {}
bool MenuSettingBool::edited()
{
return originalValue != value();

View File

@ -43,7 +43,6 @@ public:
virtual void draw(int y);
virtual void manageInput();
virtual void adjustInput();
virtual bool edited();
void setValue(int value);

View File

@ -76,8 +76,6 @@ void MenuSettingMultiString::setSel(int sel)
*value = (*choices)[sel];
}
void MenuSettingMultiString::adjustInput() {}
bool MenuSettingMultiString::edited()
{
return originalValue != *value;

View File

@ -43,7 +43,6 @@ public:
virtual void draw(int y);
virtual void manageInput();
virtual void adjustInput();
virtual bool edited();
};

View File

@ -50,10 +50,6 @@ void MenuSettingStringBase::manageInput()
if (gmenu2x->input[ACTION_B]) edit();
}
void MenuSettingStringBase::adjustInput()
{
}
void MenuSettingStringBase::clear()
{
setValue("");

View File

@ -40,7 +40,6 @@ public:
virtual void draw(int y);
virtual void manageInput();
virtual void adjustInput();
virtual bool edited();
void setValue(const string &value) { *_value = value; }