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
7efba6b3
Commit
7efba6b3
authored
May 16, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist_ItemGetByInputId: remove dead code
playlist_ItemGetByInput can be used instead anyway
parent
507ae78e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
34 deletions
+0
-34
include/vlc_playlist.h
include/vlc_playlist.h
+0
-1
src/libvlccore.sym
src/libvlccore.sym
+0
-1
src/playlist/search.c
src/playlist/search.c
+0
-32
No files found.
include/vlc_playlist.h
View file @
7efba6b3
...
...
@@ -333,7 +333,6 @@ VLC_EXPORT( int, playlist_BothAddInput, ( playlist_t *, input_item_t *,playlist_
/********************************** Item search *************************/
VLC_EXPORT
(
playlist_item_t
*
,
playlist_ItemGetById
,
(
playlist_t
*
,
int
)
);
VLC_EXPORT
(
playlist_item_t
*
,
playlist_ItemGetByInput
,
(
playlist_t
*
,
input_item_t
*
)
);
VLC_EXPORT
(
playlist_item_t
*
,
playlist_ItemGetByInputId
,
(
playlist_t
*
,
int
,
playlist_item_t
*
)
);
VLC_EXPORT
(
int
,
playlist_LiveSearchUpdate
,
(
playlist_t
*
,
playlist_item_t
*
,
const
char
*
)
);
...
...
src/libvlccore.sym
View file @
7efba6b3
...
...
@@ -301,7 +301,6 @@ playlist_Import
playlist_IsServicesDiscoveryLoaded
playlist_ItemGetById
playlist_ItemGetByInput
playlist_ItemGetByInputId
playlist_LiveSearchUpdate
playlist_Lock
playlist_NodeAppend
...
...
src/playlist/search.c
View file @
7efba6b3
...
...
@@ -80,38 +80,6 @@ playlist_item_t* playlist_ItemGetByInput( playlist_t * p_playlist,
}
/**
* Get input by item id
*
* Find the playlist item matching the input id under the given node
* \param p_playlist the playlist
* \param i_input_id the id of the input to find
* \param p_root the root node of the search
* \return the playlist item or NULL on failure
*/
playlist_item_t
*
playlist_ItemGetByInputId
(
playlist_t
*
p_playlist
,
int
i_input_id
,
playlist_item_t
*
p_root
)
{
int
i
;
PL_ASSERT_LOCKED
;
assert
(
p_root
!=
NULL
);
for
(
i
=
0
;
i
<
p_root
->
i_children
;
i
++
)
{
if
(
p_root
->
pp_children
[
i
]
->
p_input
&&
p_root
->
pp_children
[
i
]
->
p_input
->
i_id
==
i_input_id
)
{
return
p_root
->
pp_children
[
i
];
}
else
if
(
p_root
->
pp_children
[
i
]
->
i_children
>=
0
)
{
return
playlist_ItemGetByInputId
(
p_playlist
,
i_input_id
,
p_root
->
pp_children
[
i
]
);
}
}
return
NULL
;
}
/***************************************************************************
* Live search handling
***************************************************************************/
...
...
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