[vlc-commits] info: remove dead code

Rémi Denis-Courmont git at videolan.org
Sun Jun 10 20:49:32 CEST 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jun 10 20:52:32 2018 +0300| [8d9e7fdaa272fbf95404d4c0c7a753eb01f1b472] | committer: Rémi Denis-Courmont

info: remove dead code

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8d9e7fdaa272fbf95404d4c0c7a753eb01f1b472
---

 src/input/info.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/input/info.h b/src/input/info.h
index 2752c5bad4..07fc2c3eef 100644
--- a/src/input/info.h
+++ b/src/input/info.h
@@ -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);



More information about the vlc-commits mailing list