summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-04 15:40:33 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-04 15:40:33 +0000
commiteb2e28b0cfcf25b792c23951024594e1bbb69ef6 (patch)
tree59792dab163b0bcd03b8565d46e9b1e950e44330
parentf02df696d5f51498657142e4ecb65a99ab7424ad (diff)
Remove deprecated InspIRCd::Log() method so people don't use it etc
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9320 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--include/inspircd.h17
-rw-r--r--src/helperfuncs.cpp21
2 files changed, 0 insertions, 38 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index c1c6379a4..665effb61 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -800,23 +800,6 @@ class CoreExport InspIRCd : public classbase
*/
InspIRCd(int argc, char** argv);
- /** Output a log message to the ircd.log file
- * The text will only be output if the current loglevel
- * is less than or equal to the level you provide
- * @param level A log level from the DebugLevel enum
- * @param text Format string of to write to the log
- * @param ... Format arguments of text to write to the log
- */
- void Log(int level, const char* text, ...) CUSTOM_PRINTF(3, 4);
-
- /** Output a log message to the ircd.log file
- * The text will only be output if the current loglevel
- * is less than or equal to the level you provide
- * @param level A log level from the DebugLevel enum
- * @param text Text to write to the log
- */
- void Log(int level, const std::string &text);
-
/** Send a line of WHOIS data to a user.
* @param user user to send the line to
* @param dest user being WHOISed
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 465f55d6f..67faee8f5 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -18,27 +18,6 @@
#include "xline.h"
#include "exitcodes.h"
-/** Log()
- * Write a line of text `text' to the logfile (and stdout, if in nofork) if the level `level'
- * is greater than the configured loglevel.
- */
-void InspIRCd::Log(int level, const char* text, ...)
-{
- va_list argsPtr;
- char textbuffer[65536];
-
- va_start(argsPtr, text);
- vsnprintf(textbuffer, 65536, text, argsPtr);
- va_end(argsPtr);
-
- this->Log(level, std::string(textbuffer));
-}
-
-void InspIRCd::Log(int level, const std::string &text)
-{
- this->Logs->Log("DEPRECATED", level, "Deprecated use of InspIRCd::Log(), message = %s", text.c_str());
-}
-
std::string InspIRCd::GetServerDescription(const char* servername)
{
std::string description;