Skip to content

Commit dcdbc69

Browse files
committed
Fix unused Log::(Warn|Notice|Verbose|Debug) decls
1 parent f723016 commit dcdbc69

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/common/Log.h

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,22 +131,26 @@ namespace Log {
131131

132132
/*
133133
* When debugging a function or before a logger is introduced for
134-
* a module the following functions can be used for less typing.
134+
* a module, the following signatures can be used for less typing.
135135
* However it shouldn't stay in production code because it
136136
* cannot be filtered and will clutter the console.
137+
*
138+
* These are not the real function declarations because macros are involved to get __LINE__ etc.
137139
*/
138140

141+
#if 0
139142
template<typename ... Args>
140-
void Warn( const char* file, const char* function, const int line, Str::StringRef format, Args&& ... args );
143+
void Warn( Str::StringRef format, Args&& ... args );
141144

142145
template<typename ... Args>
143-
void Notice( const char* file, const char* function, const int line, Str::StringRef format, Args&& ... args );
146+
void Notice( Str::StringRef format, Args&& ... args );
144147

145148
template<typename ... Args>
146-
void Verbose( const char* file, const char* function, const int line, Str::StringRef format, Args&& ... args );
149+
void Verbose( Str::StringRef format, Args&& ... args );
147150

148151
template<typename ... Args>
149-
void Debug( const char* file, const char* function, const int line, Str::StringRef format, Args&& ... args );
152+
void Debug( Str::StringRef format, Args&& ... args );
153+
#endif
150154

151155
/*
152156
* For messages which are not true log messages, but rather are produced by

0 commit comments

Comments
 (0)