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
fcb7233b
Commit
fcb7233b
authored
Aug 04, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ConfigData: remove obsolete functions
parent
fe53a376
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
79 deletions
+0
-79
ConfigData.cxx
src/ConfigData.cxx
+0
-50
ConfigData.hxx
src/ConfigData.hxx
+0
-29
No files found.
src/ConfigData.cxx
View file @
fcb7233b
...
...
@@ -131,53 +131,3 @@ config_param::GetBlockValue(const char *name, bool default_value) const
return
bp
->
GetBoolValue
();
}
const
char
*
config_get_block_string
(
const
struct
config_param
*
param
,
const
char
*
name
,
const
char
*
default_value
)
{
if
(
param
==
nullptr
)
return
default_value
;
return
param
->
GetBlockValue
(
name
,
default_value
);
}
char
*
config_dup_block_string
(
const
struct
config_param
*
param
,
const
char
*
name
,
const
char
*
default_value
)
{
return
g_strdup
(
config_get_block_string
(
param
,
name
,
default_value
));
}
char
*
config_dup_block_path
(
const
struct
config_param
*
param
,
const
char
*
name
,
GError
**
error_r
)
{
assert
(
error_r
!=
NULL
);
assert
(
*
error_r
==
NULL
);
if
(
param
==
nullptr
)
return
nullptr
;
return
param
->
DupBlockPath
(
name
,
error_r
);
}
unsigned
config_get_block_unsigned
(
const
struct
config_param
*
param
,
const
char
*
name
,
unsigned
default_value
)
{
if
(
param
==
nullptr
)
return
default_value
;
return
param
->
GetBlockValue
(
name
,
default_value
);
}
bool
config_get_block_bool
(
const
struct
config_param
*
param
,
const
char
*
name
,
bool
default_value
)
{
if
(
param
==
nullptr
)
return
default_value
;
return
param
->
GetBlockValue
(
name
,
default_value
);
}
src/ConfigData.hxx
View file @
fcb7233b
...
...
@@ -124,33 +124,4 @@ struct ConfigData {
std
::
array
<
config_param
*
,
std
::
size_t
(
CONF_MAX
)
>
params
;
};
gcc_pure
const
char
*
config_get_block_string
(
const
struct
config_param
*
param
,
const
char
*
name
,
const
char
*
default_value
);
gcc_malloc
char
*
config_dup_block_string
(
const
struct
config_param
*
param
,
const
char
*
name
,
const
char
*
default_value
);
/**
* Same as config_dup_path(), but looks up the setting in the
* specified block.
*/
gcc_malloc
char
*
config_dup_block_path
(
const
struct
config_param
*
param
,
const
char
*
name
,
GError
**
error_r
);
gcc_pure
unsigned
config_get_block_unsigned
(
const
struct
config_param
*
param
,
const
char
*
name
,
unsigned
default_value
);
gcc_pure
bool
config_get_block_bool
(
const
struct
config_param
*
param
,
const
char
*
name
,
bool
default_value
);
#endif
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