Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
ddc97a84
Commit
ddc97a84
authored
May 23, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
variables: remove unused var_Destroy() return value
parent
7e1ef2be
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
include/vlc_variables.h
include/vlc_variables.h
+1
-1
src/misc/variables.c
src/misc/variables.c
+2
-4
No files found.
include/vlc_variables.h
View file @
ddc97a84
...
@@ -141,7 +141,7 @@ enum {
...
@@ -141,7 +141,7 @@ enum {
VLC_API
int
var_Create
(
vlc_object_t
*
,
const
char
*
,
int
);
VLC_API
int
var_Create
(
vlc_object_t
*
,
const
char
*
,
int
);
#define var_Create(a,b,c) var_Create( VLC_OBJECT(a), b, c )
#define var_Create(a,b,c) var_Create( VLC_OBJECT(a), b, c )
VLC_API
int
var_Destroy
(
vlc_object_t
*
,
const
char
*
);
VLC_API
void
var_Destroy
(
vlc_object_t
*
,
const
char
*
);
#define var_Destroy(a,b) var_Destroy( VLC_OBJECT(a), b )
#define var_Destroy(a,b) var_Destroy( VLC_OBJECT(a), b )
VLC_API
int
var_Change
(
vlc_object_t
*
,
const
char
*
,
int
,
vlc_value_t
*
,
vlc_value_t
*
);
VLC_API
int
var_Change
(
vlc_object_t
*
,
const
char
*
,
int
,
vlc_value_t
*
,
vlc_value_t
*
);
...
...
src/misc/variables.c
View file @
ddc97a84
...
@@ -418,7 +418,6 @@ int var_Create( vlc_object_t *p_this, const char *psz_name, int i_type )
...
@@ -418,7 +418,6 @@ int var_Create( vlc_object_t *p_this, const char *psz_name, int i_type )
return
ret
;
return
ret
;
}
}
#undef var_Destroy
/**
/**
* Destroy a vlc variable
* Destroy a vlc variable
*
*
...
@@ -428,7 +427,7 @@ int var_Create( vlc_object_t *p_this, const char *psz_name, int i_type )
...
@@ -428,7 +427,7 @@ int var_Create( vlc_object_t *p_this, const char *psz_name, int i_type )
* \param p_this The object that holds the variable
* \param p_this The object that holds the variable
* \param psz_name The name of the variable
* \param psz_name The name of the variable
*/
*/
int
var_Destroy
(
vlc_object_t
*
p_this
,
const
char
*
psz_name
)
void
(
var_Destroy
)(
vlc_object_t
*
p_this
,
const
char
*
psz_name
)
{
{
variable_t
*
p_var
;
variable_t
*
p_var
;
...
@@ -440,7 +439,7 @@ int var_Destroy( vlc_object_t *p_this, const char *psz_name )
...
@@ -440,7 +439,7 @@ int var_Destroy( vlc_object_t *p_this, const char *psz_name )
if
(
p_var
==
NULL
)
if
(
p_var
==
NULL
)
{
{
vlc_mutex_unlock
(
&
p_priv
->
var_lock
);
vlc_mutex_unlock
(
&
p_priv
->
var_lock
);
return
VLC_ENOVAR
;
return
;
}
}
WaitUnused
(
p_this
,
p_var
);
WaitUnused
(
p_this
,
p_var
);
...
@@ -453,7 +452,6 @@ int var_Destroy( vlc_object_t *p_this, const char *psz_name )
...
@@ -453,7 +452,6 @@ int var_Destroy( vlc_object_t *p_this, const char *psz_name )
if
(
p_var
!=
NULL
)
if
(
p_var
!=
NULL
)
Destroy
(
p_var
);
Destroy
(
p_var
);
return
VLC_SUCCESS
;
}
}
static
void
CleanupVar
(
void
*
var
)
static
void
CleanupVar
(
void
*
var
)
...
...
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