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
60b23380
Commit
60b23380
authored
Jul 17, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
config/Global: remove unused function config_get_path()
parent
d2594c63
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
19 deletions
+1
-19
Block.hxx
src/config/Block.hxx
+1
-1
Global.cxx
src/config/Global.cxx
+0
-7
Global.hxx
src/config/Global.hxx
+0
-11
No files found.
src/config/Block.hxx
View file @
60b23380
...
...
@@ -114,7 +114,7 @@ struct ConfigBlock {
const
char
*
default_value
=
nullptr
)
const
noexcept
;
/**
* Same as
config_get_p
ath(), but looks up the setting in the
* Same as
ConfigData::GetP
ath(), but looks up the setting in the
* specified block.
*
* Throws #std::runtime_error on error.
...
...
src/config/Global.cxx
View file @
60b23380
...
...
@@ -26,7 +26,6 @@
#include "Path.hxx"
#include "Domain.hxx"
#include "fs/Path.hxx"
#include "fs/AllocatedPath.hxx"
#include "util/RuntimeError.hxx"
#include "Log.hxx"
...
...
@@ -95,12 +94,6 @@ config_get_string(ConfigOption option, const char *default_value) noexcept
return
config_data
.
GetString
(
option
,
default_value
);
}
AllocatedPath
config_get_path
(
ConfigOption
option
)
{
return
config_data
.
GetPath
(
option
);
}
unsigned
config_get_positive
(
ConfigOption
option
,
unsigned
default_value
)
{
...
...
src/config/Global.hxx
View file @
60b23380
...
...
@@ -24,7 +24,6 @@
#include "Compiler.h"
class
Path
;
class
AllocatedPath
;
struct
ConfigData
;
struct
ConfigParam
;
struct
ConfigBlock
;
...
...
@@ -61,16 +60,6 @@ const char *
config_get_string
(
enum
ConfigOption
option
,
const
char
*
default_value
=
nullptr
)
noexcept
;
/**
* Returns an optional configuration variable which contains an
* absolute path. If there is a tilde prefix, it is expanded.
* Returns nullptr if the value is not present.
*
* Throws #std::runtime_error on error.
*/
AllocatedPath
config_get_path
(
enum
ConfigOption
option
);
unsigned
config_get_positive
(
enum
ConfigOption
option
,
unsigned
default_value
);
...
...
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