From 663ce7070422e1ec53e99fd122803e02f35c11a6 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 14 Jun 2015 04:24:50 +0200 Subject: [PATCH] Simplify menu_list_elem_is_dir --- menu/menu_list.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/menu/menu_list.c b/menu/menu_list.c index da70993bdc..34e3c09e99 100644 --- a/menu/menu_list.c +++ b/menu/menu_list.c @@ -43,11 +43,9 @@ menu_list_t *menu_list_get_ptr(void) static bool menu_list_elem_is_dir(file_list_t *list, unsigned offset) { - const char *path = NULL; - const char *label = NULL; unsigned type = 0; - menu_list_get_at_offset(list, offset, &path, &label, &type, NULL); + menu_list_get_at_offset(list, offset, NULL, NULL, &type, NULL); return type == MENU_FILE_DIRECTORY; }