Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
78231daf
Commit
78231daf
authored
Oct 02, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unfunctional add_deprecated_alias()
parent
334e9ba0
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
3 additions
and
39 deletions
+3
-39
include/vlc_configuration.h
include/vlc_configuration.h
+0
-1
include/vlc_plugin.h
include/vlc_plugin.h
+2
-5
src/config/chain.c
src/config/chain.c
+0
-7
src/config/cmdline.c
src/config/cmdline.c
+0
-14
src/config/core.c
src/config/core.c
+0
-1
src/modules/cache.c
src/modules/cache.c
+1
-3
src/modules/entry.c
src/modules/entry.c
+0
-8
No files found.
include/vlc_configuration.h
View file @
78231daf
...
...
@@ -172,7 +172,6 @@ struct module_config_t
char
**
ppsz_action_text
;
/* Friendly names for actions */
/* Deprecated */
char
*
psz_oldname
;
/* Old option name */
bool
b_removed
;
};
...
...
include/vlc_plugin.h
View file @
78231daf
...
...
@@ -82,8 +82,8 @@ enum vlc_module_properties
VLC_CONFIG_SHORTCUT
,
/* one-character (short) command line option name (args=char) */
VLC_CONFIG_OLDNAME
,
/*
former option name (args=const char *
) */
VLC_CONFIG_OLDNAME
_OBSOLETE
,
/*
unused (ignored
) */
VLC_CONFIG_SAFE
,
/* tag as modifiable by untrusted input item "sources" (args=none) */
...
...
@@ -383,9 +383,6 @@ VLC_METADATA_EXPORTS
/* Modifier macros for the config options (used for fine tuning) */
#define add_deprecated_alias( name ) \
vlc_config_set (VLC_CONFIG_OLDNAME, (const char *)(name));
#define change_short( ch ) \
vlc_config_set (VLC_CONFIG_SHORTCUT, (int)(ch));
...
...
src/config/chain.c
View file @
78231daf
...
...
@@ -342,13 +342,6 @@ void config_ChainParse( vlc_object_t *p_this, const char *psz_prefix,
* modules so i'll do it later */
continue
;
}
if
(
p_conf
->
psz_oldname
&&
!
strcmp
(
p_conf
->
psz_oldname
,
name
)
)
{
psz_name
=
p_conf
->
psz_name
;
msg_Warn
(
p_this
,
"Option %s is obsolete. Use %s instead."
,
name
,
psz_name
);
}
}
/* </Check if the option is deprecated> */
...
...
src/config/cmdline.c
View file @
78231daf
...
...
@@ -225,20 +225,6 @@ int config_LoadCmdLine( vlc_object_t *p_this, int i_argc,
continue
;
}
if
(
p_conf
->
psz_oldname
&&
!
strcmp
(
p_conf
->
psz_oldname
,
psz_name
)
)
{
if
(
!
b_ignore_errors
)
{
fprintf
(
stderr
,
"Error: option --%s is deprecated. "
"Use --%s instead.
\n
"
,
psz_name
,
p_conf
->
psz_name
);
goto
out
;
}
psz_name
=
p_conf
->
psz_name
;
}
switch
(
CONFIG_CLASS
(
p_conf
->
i_type
)
)
{
case
CONFIG_ITEM_STRING
:
...
...
src/config/core.c
View file @
78231daf
...
...
@@ -435,7 +435,6 @@ void config_Free (module_config_t *config, size_t confsize)
free
(
p_item
->
psz_name
);
free
(
p_item
->
psz_text
);
free
(
p_item
->
psz_longtext
);
free
(
p_item
->
psz_oldname
);
if
(
IsConfigStringType
(
p_item
->
i_type
))
{
...
...
src/modules/cache.c
View file @
78231daf
...
...
@@ -59,7 +59,7 @@ static int CacheLoadConfig ( module_t *, FILE * );
/* Sub-version number
* (only used to avoid breakage in dev version when cache structure changes) */
#define CACHE_SUBVERSION_NUM 1
7
#define CACHE_SUBVERSION_NUM 1
8
/* Cache filename */
#define CACHE_NAME "plugins.dat"
...
...
@@ -314,7 +314,6 @@ static int CacheLoadConfig( module_t *p_module, FILE *file )
LOAD_STRING
(
p_module
->
p_config
[
i
].
psz_name
);
LOAD_STRING
(
p_module
->
p_config
[
i
].
psz_text
);
LOAD_STRING
(
p_module
->
p_config
[
i
].
psz_longtext
);
LOAD_STRING
(
p_module
->
p_config
[
i
].
psz_oldname
);
if
(
IsConfigStringType
(
p_module
->
p_config
[
i
].
i_type
))
{
...
...
@@ -561,7 +560,6 @@ static int CacheSaveConfig (FILE *file, const module_t *p_module)
SAVE_STRING
(
p_module
->
p_config
[
i
].
psz_name
);
SAVE_STRING
(
p_module
->
p_config
[
i
].
psz_text
);
SAVE_STRING
(
p_module
->
p_config
[
i
].
psz_longtext
);
SAVE_STRING
(
p_module
->
p_config
[
i
].
psz_oldname
);
if
(
IsConfigStringType
(
p_module
->
p_config
[
i
].
i_type
))
SAVE_STRING
(
p_module
->
p_config
[
i
].
orig
.
psz
);
...
...
src/modules/entry.c
View file @
78231daf
...
...
@@ -359,14 +359,6 @@ static int vlc_plugin_setter (void *plugin, void *tgt, int propid, ...)
item
->
i_short
=
va_arg
(
ap
,
int
);
break
;
case
VLC_CONFIG_OLDNAME
:
{
const
char
*
oldname
=
va_arg
(
ap
,
const
char
*
);
assert
(
item
->
psz_oldname
==
NULL
);
item
->
psz_oldname
=
oldname
?
strdup
(
oldname
)
:
NULL
;
break
;
}
case
VLC_CONFIG_SAFE
:
item
->
b_safe
=
true
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment