Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
358b6710
Commit
358b6710
authored
Dec 29, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DecoderList: remove unused function decoder_plugin_from_mime_type()
parent
92a4bf44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
25 deletions
+0
-25
DecoderList.cxx
src/DecoderList.cxx
+0
-22
DecoderList.hxx
src/DecoderList.hxx
+0
-3
No files found.
src/DecoderList.cxx
View file @
358b6710
...
...
@@ -156,28 +156,6 @@ decoder_plugin_from_suffix(const char *suffix,
}
const
struct
DecoderPlugin
*
decoder_plugin_from_mime_type
(
const
char
*
mimeType
,
unsigned
int
next
)
{
static
unsigned
i
=
num_decoder_plugins
;
if
(
mimeType
==
nullptr
)
return
nullptr
;
if
(
!
next
)
i
=
0
;
for
(;
decoder_plugins
[
i
]
!=
nullptr
;
++
i
)
{
const
struct
DecoderPlugin
*
plugin
=
decoder_plugins
[
i
];
if
(
decoder_plugins_enabled
[
i
]
&&
plugin
->
SupportsMimeType
(
mimeType
))
{
++
i
;
return
plugin
;
}
}
return
nullptr
;
}
const
struct
DecoderPlugin
*
decoder_plugin_from_name
(
const
char
*
name
)
{
return
decoder_plugins_find
([
=
](
const
DecoderPlugin
&
plugin
){
...
...
src/DecoderList.hxx
View file @
358b6710
...
...
@@ -39,9 +39,6 @@ decoder_plugin_from_suffix(const char *suffix,
const
struct
DecoderPlugin
*
plugin
);
const
struct
DecoderPlugin
*
decoder_plugin_from_mime_type
(
const
char
*
mimeType
,
unsigned
int
next
);
const
struct
DecoderPlugin
*
decoder_plugin_from_name
(
const
char
*
name
);
/* this is where we "load" all the "plugins" ;-) */
...
...
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