plugin: remove non-existent subcategory hint items type
authorRémi Denis-Courmont <remi@remlab.net>
Fri, 25 Oct 2013 14:45:54 +0000 (17:45 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Fri, 25 Oct 2013 19:32:50 +0000 (22:32 +0300)
include/vlc_plugin.h
src/config/help.c
src/libvlc-module.c

index 295b2c3..224c0aa 100644 (file)
@@ -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 )
 
index b49022f..ff58488 100644 (file)
@@ -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;
index 6fd088d..01cd171 100644 (file)
@@ -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 )