[vlc-commits] variables: remove dead code

Rémi Denis-Courmont git at videolan.org
Thu May 21 18:36:59 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed May 20 22:46:54 2015 +0300| [ce069b3e3476f439cb176db0613ff359e9cfeb5e] | committer: Rémi Denis-Courmont

variables: remove dead code

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

 src/misc/variables.c |   22 ----------------------
 1 file changed, 22 deletions(-)

diff --git a/src/misc/variables.c b/src/misc/variables.c
index 3a89b41..36e6dce 100644
--- a/src/misc/variables.c
+++ b/src/misc/variables.c
@@ -35,9 +35,6 @@
 #include <float.h>
 #include <math.h>
 #include <limits.h>
-#ifdef __GLIBC__
-# include <dlfcn.h>
-#endif
 
 #include <vlc_common.h>
 #include <vlc_charset.h>
@@ -155,25 +152,6 @@ static void Destroy( variable_t *p_var )
         free( p_var->choices.p_values );
         free( p_var->choices_text.p_values );
     }
-#if 0 // ndef NDEBUG
-    callback_table_t *p_table = &p_var->value_callbacks;
-    for (int i = 0; i < p_table->i_entries; i++)
-    {
-        const char *file = "?", *symbol = "?";
-        const void *addr = p_table->p_entries[i].pf_callback;
-# ifdef __GLIBC__
-        Dl_info info;
-
-        if (dladdr (addr, &info))
-        {
-            if (info.dli_fname) file = info.dli_fname;
-            if (info.dli_sname) symbol = info.dli_sname;
-        }
-# endif
-        fprintf (stderr, "Error: callback on \"%s\" dangling %s(%s)[%p]\n",
-                 p_var->psz_name, file, symbol, addr);
-    }
-#endif
 
     free( p_var->psz_name );
     free( p_var->psz_text );



More information about the vlc-commits mailing list