mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-13 16:33:42 +02:00
- moviebrowser: remove inactive code
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -2235,19 +2235,7 @@ bool CMovieBrowser::onButtonPressMainFrame(neutrino_msg_t msg)
|
||||
m.addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_INFO_PREVPLAYDATE, true, NULL, selector, to_string(MB_INFO_PREVPLAYDATE).c_str(), CRCInput::RC_red));
|
||||
m.addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_INFO_RECORDDATE, true, NULL, selector, to_string(MB_INFO_RECORDDATE).c_str(), CRCInput::RC_green));
|
||||
m.addItem(new CMenuSeparator(CMenuSeparator::LINE));
|
||||
#if 0
|
||||
// add PREVPLAYDATE/RECORDDATE sort buttons to footer
|
||||
m.addKey(CRCInput::RC_red, selector, to_string(MB_INFO_PREVPLAYDATE).c_str());
|
||||
m.addKey(CRCInput::RC_green, selector, to_string(MB_INFO_RECORDDATE).c_str());
|
||||
|
||||
button_label footerButtons[] = {
|
||||
{ NEUTRINO_ICON_BUTTON_RED, LOCALE_MOVIEBROWSER_INFO_PREVPLAYDATE},
|
||||
{ NEUTRINO_ICON_BUTTON_GREEN, LOCALE_MOVIEBROWSER_INFO_RECORDDATE}
|
||||
};
|
||||
int footerButtonsCount = sizeof(footerButtons) / sizeof(button_label);
|
||||
|
||||
m.setFooter(footerButtons, footerButtonsCount);
|
||||
#endif
|
||||
// just show sorting options for displayed rows; sorted by rows
|
||||
for (int row = 0; row < MB_MAX_ROWS && row < m_settings.browserRowNr; row++)
|
||||
{
|
||||
@@ -2256,7 +2244,7 @@ bool CMovieBrowser::onButtonPressMainFrame(neutrino_msg_t msg)
|
||||
if (sortBy[i] == NULL)
|
||||
continue;
|
||||
|
||||
// already added to footer
|
||||
// already added above
|
||||
if (i == MB_INFO_PREVPLAYDATE || i == MB_INFO_RECORDDATE)
|
||||
continue;
|
||||
|
||||
|
Reference in New Issue
Block a user