From: Gunnar Beutner Date: Tue, 17 Dec 2013 06:54:41 +0000 (+0100) Subject: Fix compiler warnings in the CompatLogger class. X-Git-Tag: v0.0.6~19^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53c143470004bc4b643db1013b45f69324e9e2b4;p=icinga2 Fix compiler warnings in the CompatLogger class. Refs #5349 --- diff --git a/components/compat/compatlogger.cpp b/components/compat/compatlogger.cpp index c064b49fa..d0c26f1ec 100644 --- a/components/compat/compatlogger.cpp +++ b/components/compat/compatlogger.cpp @@ -42,10 +42,6 @@ using namespace icinga; REGISTER_TYPE(CompatLogger); REGISTER_SCRIPTFUNCTION(ValidateRotationMethod, &CompatLogger::ValidateRotationMethod); -CompatLogger::CompatLogger(void) - : m_LastRotation(0) -{ } - /** * @threadsafety Always. */ diff --git a/components/compat/compatlogger.h b/components/compat/compatlogger.h index fb99f2639..ca61376e6 100644 --- a/components/compat/compatlogger.h +++ b/components/compat/compatlogger.h @@ -39,16 +39,12 @@ public: DECLARE_PTR_TYPEDEFS(CompatLogger); DECLARE_TYPENAME(CompatLogger); - CompatLogger(void); - static void ValidateRotationMethod(const String& location, const Dictionary::Ptr& attrs); protected: virtual void Start(void); private: - double m_LastRotation; - void WriteLine(const String& line); void Flush(void);