mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +02:00
personalize: clean up
remove unused code in addSeparator()
thx focus for hint
Origin commit data
------------------
Commit: 5aff1f189c
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-05-04 (Fri, 04 May 2012)
This commit is contained in:
@@ -719,16 +719,10 @@ void CPersonalizeGui::addSeparator(const int& widget_id, const neutrino_locale_t
|
||||
//expands with parameter within you can show or hide this item in personalize options
|
||||
void CPersonalizeGui::addSeparator(CMenuWidget &widget, const neutrino_locale_t locale_text, const int& item_mode)
|
||||
{
|
||||
#if 0
|
||||
menu_item_t to_add_sep[2] = { {&widget, GenericMenuSeparatorLine, false, locale_text, NULL, item_mode, NULL},
|
||||
{&widget, new CMenuSeparator(CMenuSeparator::LINE | CMenuSeparator::STRING, locale_text), false, locale_text, NULL, item_mode, NULL}};
|
||||
#endif
|
||||
if (locale_text == NONEXISTANT_LOCALE) {
|
||||
//v_item.push_back(to_add_sep[0]);
|
||||
menu_item_t to_add_sep = {&widget, GenericMenuSeparatorLine, false, locale_text, NULL, item_mode, NULL};
|
||||
v_item.push_back(to_add_sep);
|
||||
} else {
|
||||
//v_item.push_back(to_add_sep[1]);
|
||||
menu_item_t to_add_sep = {&widget, new CMenuSeparator(CMenuSeparator::LINE | CMenuSeparator::STRING, locale_text), false, locale_text, NULL, item_mode, NULL};
|
||||
v_item.push_back(to_add_sep);
|
||||
}
|
||||
|
Reference in New Issue
Block a user