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
696add25
Commit
696add25
authored
Jul 17, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
config/Global: remove unused function config_find_block()
parent
f18695eb
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
16 deletions
+6
-16
Data.hxx
src/config/Data.hxx
+6
-0
Global.cxx
src/config/Global.cxx
+0
-6
Global.hxx
src/config/Global.hxx
+0
-10
No files found.
src/config/Data.hxx
View file @
696add25
...
...
@@ -44,7 +44,13 @@ struct ConfigData {
}
/**
* Find a block with a matching attribute.
*
* Throws if a block doesn't have the specified (mandatory) key.
*
* @param option the blocks to search
* @param key the attribute name
* @param value the expected attribute value
*/
gcc_pure
const
ConfigBlock
*
FindBlock
(
ConfigBlockOption
option
,
...
...
src/config/Global.cxx
View file @
696add25
...
...
@@ -92,12 +92,6 @@ config_get_block(ConfigBlockOption option) noexcept
return
config_data
.
GetBlock
(
option
);
}
const
ConfigBlock
*
config_find_block
(
ConfigBlockOption
option
,
const
char
*
key
,
const
char
*
value
)
{
return
config_data
.
FindBlock
(
option
,
key
,
value
);
}
const
char
*
config_get_string
(
ConfigOption
option
,
const
char
*
default_value
)
noexcept
{
...
...
src/config/Global.hxx
View file @
696add25
...
...
@@ -59,16 +59,6 @@ gcc_pure
const
ConfigBlock
*
config_get_block
(
enum
ConfigBlockOption
option
)
noexcept
;
/**
* Find a block with a matching attribute.
*
* @param option the blocks to search
* @param key the attribute name
* @param value the expected attribute value
*/
const
ConfigBlock
*
config_find_block
(
ConfigBlockOption
option
,
const
char
*
key
,
const
char
*
value
);
const
char
*
config_get_string
(
enum
ConfigOption
option
,
const
char
*
default_value
=
nullptr
)
noexcept
;
...
...
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