From 33bb7ad76ea0bd9c40285fbbfc5b8da4a32415ac Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 11 Jun 2015 23:08:12 +0200 Subject: [PATCH] Refactor xmb_get_userdata_from_horizontal_list --- menu/drivers/xmb.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index a3cb7fed2d..7df041fae6 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -660,12 +660,7 @@ static xmb_node_t *xmb_node_allocate_userdata(xmb_handle_t *xmb, unsigned i) static xmb_node_t* xmb_get_userdata_from_horizontal_list( xmb_handle_t *xmb, unsigned i) { - struct item_file *info = (struct item_file*)&xmb->horizontal_list->list[i]; - - if (info) - return (xmb_node_t*)info->actiondata; - - return NULL; + return (xmb_node_t*)file_list_get_actiondata_at_offset(xmb->horizontal_list, i); } static void xmb_push_animations(xmb_node_t *node, float ia, float ix)