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
0e0f46a1
Commit
0e0f46a1
authored
Jun 24, 2021
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log: remove unused Format functions
parent
6f539cfc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
39 deletions
+0
-39
Log.cxx
src/Log.cxx
+0
-27
Log.hxx
src/Log.hxx
+0
-12
No files found.
src/Log.cxx
View file @
0e0f46a1
...
...
@@ -67,24 +67,6 @@ FormatDebug(const Domain &domain, const char *fmt, ...) noexcept
}
void
FormatInfo
(
const
Domain
&
domain
,
const
char
*
fmt
,
...)
noexcept
{
std
::
va_list
ap
;
va_start
(
ap
,
fmt
);
LogFormatV
(
LogLevel
::
INFO
,
domain
,
fmt
,
ap
);
va_end
(
ap
);
}
void
FormatNotice
(
const
Domain
&
domain
,
const
char
*
fmt
,
...)
noexcept
{
std
::
va_list
ap
;
va_start
(
ap
,
fmt
);
LogFormatV
(
LogLevel
::
NOTICE
,
domain
,
fmt
,
ap
);
va_end
(
ap
);
}
void
FormatWarning
(
const
Domain
&
domain
,
const
char
*
fmt
,
...)
noexcept
{
std
::
va_list
ap
;
...
...
@@ -94,15 +76,6 @@ FormatWarning(const Domain &domain, const char *fmt, ...) noexcept
}
void
FormatError
(
const
Domain
&
domain
,
const
char
*
fmt
,
...)
noexcept
{
std
::
va_list
ap
;
va_start
(
ap
,
fmt
);
LogFormatV
(
LogLevel
::
ERROR
,
domain
,
fmt
,
ap
);
va_end
(
ap
);
}
void
Log
(
LogLevel
level
,
const
std
::
exception
&
e
)
noexcept
{
Log
(
level
,
exception_domain
,
GetFullMessage
(
e
).
c_str
());
...
...
src/Log.hxx
View file @
0e0f46a1
...
...
@@ -141,20 +141,12 @@ LogInfo(const Domain &domain, const char *msg) noexcept
Log
(
LogLevel
::
INFO
,
domain
,
msg
);
}
gcc_printf
(
2
,
3
)
void
FormatInfo
(
const
Domain
&
domain
,
const
char
*
fmt
,
...)
noexcept
;
static
inline
void
LogNotice
(
const
Domain
&
domain
,
const
char
*
msg
)
noexcept
{
Log
(
LogLevel
::
NOTICE
,
domain
,
msg
);
}
gcc_printf
(
2
,
3
)
void
FormatNotice
(
const
Domain
&
domain
,
const
char
*
fmt
,
...)
noexcept
;
static
inline
void
LogWarning
(
const
Domain
&
domain
,
const
char
*
msg
)
noexcept
{
...
...
@@ -210,10 +202,6 @@ FormatError(const std::exception_ptr &ep,
LogFormat
(
LogLevel
::
ERROR
,
ep
,
fmt
,
std
::
forward
<
Args
>
(
args
)...);
}
gcc_printf
(
2
,
3
)
void
FormatError
(
const
Domain
&
domain
,
const
char
*
fmt
,
...)
noexcept
;
void
LogErrno
(
const
Domain
&
domain
,
int
e
,
const
char
*
msg
)
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