[vlc-commits] plugin: remove non-existent subcategory hint items type

Rémi Denis-Courmont git at videolan.org
Fri Oct 25 22:02:52 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Oct 25 17:45:54 2013 +0300| [7b226da6ce9d8fe01afa220c2564db2bffe5b897] | committer: Rémi Denis-Courmont

plugin: remove non-existent subcategory hint items type

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

 include/vlc_plugin.h |    8 --------
 src/config/help.c    |    3 ---
 src/libvlc-module.c  |    1 -
 3 files changed, 12 deletions(-)

diff --git a/include/vlc_plugin.h b/include/vlc_plugin.h
index 295b2c3..224c0aa 100644
--- a/include/vlc_plugin.h
+++ b/include/vlc_plugin.h
@@ -110,8 +110,6 @@ enum vlc_module_properties
 
 /* Configuration hint types */
 #define CONFIG_HINT_CATEGORY                0x02  /* Start of new category */
-#define CONFIG_HINT_SUBCATEGORY             0x03  /* Start of sub-category */
-#define CONFIG_HINT_SUBCATEGORY_END         0x04  /* End of sub-category */
 #define CONFIG_HINT_USAGE                   0x05  /* Usage information */
 
 #define CONFIG_CATEGORY                     0x06 /* Set category */
@@ -362,12 +360,6 @@ VLC_METADATA_EXPORTS
 #define add_category_hint( text, longtext, advc ) \
     add_typeadv_inner( CONFIG_HINT_CATEGORY, text, longtext, advc )
 
-#define add_subcategory_hint( text, longtext ) \
-    add_typedesc_inner( CONFIG_HINT_SUBCATEGORY, text, longtext )
-
-#define end_subcategory_hint \
-    add_type_inner( CONFIG_HINT_SUBCATEGORY_END )
-
 #define add_usage_hint( text ) \
     add_typedesc_inner( CONFIG_HINT_USAGE, text, NULL )
 
diff --git a/src/config/help.c b/src/config/help.c
index b49022f..ff58488 100644
--- a/src/config/help.c
+++ b/src/config/help.c
@@ -417,9 +417,6 @@ static void Usage (vlc_object_t *p_this, char const *psz_search)
                 }
                 break;
 
-                case CONFIG_HINT_SUBCATEGORY:
-                    if( strcmp( "main", objname ) )
-                        break;
                 case CONFIG_SECTION:
                     p_section = p_item;
                     break;
diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index 6fd088d..01cd171 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -1440,7 +1440,6 @@ static const char *const mouse_wheel_texts[] =
  * Quick usage guide for the configuration options:
  *
  * add_category_hint( N_(text), N_(longtext), b_advanced_option )
- * add_subcategory_hint( N_(text), N_(longtext), b_advanced_option )
  * add_usage_hint( N_(text), b_advanced_option )
  * add_string( option_name, value, N_(text), N_(longtext),
                b_advanced_option )



More information about the vlc-commits mailing list