[vlc-devel] commit: Remove unused change_float_list ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Jan 28 20:50:56 CET 2009


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Wed Jan 28 20:43:02 2009 +0200| [5f62f401a2be8a45f119925dbbd241c48bab5da9] | committer: Rémi Denis-Courmont 

Remove unused change_float_list

We should decide whether to use float or double before we bring it
back, if needed. In the mean time, it's best to remove the macro, as
the back-end did and still does not work.

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

 include/vlc_plugin.h |    7 -------
 src/modules/entry.c  |   15 ---------------
 2 files changed, 0 insertions(+), 22 deletions(-)

diff --git a/include/vlc_plugin.h b/include/vlc_plugin.h
index 5595e20..f9e3107 100644
--- a/include/vlc_plugin.h
+++ b/include/vlc_plugin.h
@@ -411,13 +411,6 @@ enum vlc_module_properties
                     (const char *const *)(list_text), \
                     (vlc_callback_t)(list_update_func));
 
-#define change_float_list( list, list_text, list_update_func ) \
-    vlc_config_set (p_config, VLC_CONFIG_LIST, domain, \
-                    (size_t)(sizeof (list) / sizeof (float)), \
-                    (const float *)(list), \
-                    (const char *const *)(list_text), \
-                    (vlc_callback_t)(list_update_func));
-
 #define change_integer_range( minv, maxv ) \
     vlc_config_set (p_config, VLC_CONFIG_RANGE, (int)(minv), (int)(maxv));
 
diff --git a/src/modules/entry.c b/src/modules/entry.c
index 0014cc7..6af3fba 100644
--- a/src/modules/entry.c
+++ b/src/modules/entry.c
@@ -386,21 +386,6 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
                 item->pi_list = dst;
             }
             else
-#if 0
-            if (IsConfigFloatType (item->i_type))
-            {
-                const float *src = va_arg (ap, const float *);
-                float *dst = malloc (sizeof (float) * (len + 1));
-
-                if (dst != NULL)
-                {
-                    memcpy (dst, src, sizeof (float) * len);
-                    dst[len] = 0.;
-                }
-                item->pf_list = dst;
-            }
-            else
-#endif
             if (IsConfigStringType (item->i_type))
             {
                 const char *const *src = va_arg (ap, const char *const *);




More information about the vlc-devel mailing list