Commit 8d9e7fda authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

info: remove dead code

parent 5207ca64
......@@ -26,14 +26,14 @@
#include "vlc_input_item.h"
static inline info_t *info_New(const char *name, const char *value )
static inline info_t *info_New(const char *name)
{
info_t *info = malloc(sizeof(*info));
if (!info)
return NULL;
info->psz_name = strdup(name);
info->psz_value = value ? strdup(value) : NULL;
info->psz_value = NULL;
return info;
}
......@@ -87,7 +87,7 @@ static inline info_t *info_category_VaAddInfo(info_category_t *cat,
{
info_t *info = info_category_FindInfo(cat, NULL, name);
if (!info) {
info = info_New(name, NULL);
info = info_New(name);
if (!info)
return NULL;
TAB_APPEND(cat->i_infos, cat->pp_infos, info);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment