Get rid of menu_parse_check function call in menu_action_ok

This commit is contained in:
twinaphex 2014-10-12 04:43:43 +02:00
parent c8e121173a
commit 6dcef65dba

View File

@ -750,16 +750,6 @@ static int menu_action_ok(const char *menu_path,
if (cbs && cbs->action_ok)
return cbs->action_ok(path, label, type, driver.menu->selection_ptr);
/* TODO - can we get rid of this now? */
if (menu_parse_check(label, type) == 0)
{
char cat_path[PATH_MAX];
fill_pathname_join(cat_path, menu_path, path, sizeof(cat_path));
menu_entries_push(driver.menu->menu_stack,
cat_path, menu_label, type, driver.menu->selection_ptr);
}
return 0;
}