Module: check_mk
Branch: master
Commit: 9117b72fb57d8127869026fe237a65e6ac2901a0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9117b72fb57d81…
Author: Jukka Aro <ja(a)mathias-kettner.de>
Date: Thu Oct 5 08:34:15 2017 +0200
Remove unused SectionCrashDebug
SectionCrashDebug was removed in commit
8f4a78097b1472cccdc8f94ff7e2db7cbb9ec162. The files were
accidentally left in Git and the header file was also
unnecessarily included in SectionManager.cc.
Change-Id: I7ea614f08d264bffd19fa766448d2e14e13b56f0
---
agents/windows/SectionManager.cc | 1 -
agents/windows/sections/SectionCrashDebug.cc | 39 --------------------------
agents/windows/sections/SectionCrashDebug.h | 42 ----------------------------
3 files changed, 82 deletions(-)
diff --git a/agents/windows/SectionManager.cc b/agents/windows/SectionManager.cc
index 534430f..cf202bb 100644
--- a/agents/windows/SectionManager.cc
+++ b/agents/windows/SectionManager.cc
@@ -3,7 +3,6 @@
#include "Configuration.h"
#include "Environment.h"
#include "sections/SectionCheckMK.h"
-#include "sections/SectionCrashDebug.h"
#include "sections/SectionDF.h"
#include "sections/SectionEventlog.h"
#include "sections/SectionFileinfo.h"
diff --git a/agents/windows/sections/SectionCrashDebug.cc
b/agents/windows/sections/SectionCrashDebug.cc
deleted file mode 100644
index 56faeb2..0000000
--- a/agents/windows/sections/SectionCrashDebug.cc
+++ /dev/null
@@ -1,39 +0,0 @@
-// +------------------------------------------------------------------+
-// | ____ _ _ __ __ _ __ |
-// | / ___| |__ ___ ___| | __ | \/ | |/ / |
-// | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
-// | | |___| | | | __/ (__| < | | | | . \ |
-// | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
-// | |
-// | Copyright Mathias Kettner 2017 mk(a)mathias-kettner.de |
-// +------------------------------------------------------------------+
-//
-// This file is part of Check_MK.
-// The official homepage is at
http://mathias-kettner.de/check_mk.
-//
-// check_mk is free software; you can redistribute it and/or modify it
-// under the terms of the GNU General Public License as published by
-// the Free Software Foundation in version 2. check_mk is distributed
-// in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
-// out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-// PARTICULAR PURPOSE. See the GNU General Public License for more de-
-// ails. You should have received a copy of the GNU General Public
-// License along with GNU Make; see the file COPYING. If not, write
-// to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
-// Boston, MA 02110-1301 USA.
-
-#include "SectionCrashDebug.h"
-#include "../Environment.h"
-#include "../Logger.h"
-
-SectionCrashDebug::SectionCrashDebug(Configuration &config, Logger *logger,
- const WinApiAdaptor &winapi)
- : Section("logwatch", config.getEnvironment(), logger, winapi)
- , _crash_debug(config, "global", "crash_debug", false, winapi)
{}
-
-bool SectionCrashDebug::produceOutputInner(std::ostream &out) {
- if (*_crash_debug) {
- _logger.printCrashLog(out);
- }
- return true;
-}
diff --git a/agents/windows/sections/SectionCrashDebug.h
b/agents/windows/sections/SectionCrashDebug.h
deleted file mode 100644
index 5c97450..0000000
--- a/agents/windows/sections/SectionCrashDebug.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// +------------------------------------------------------------------+
-// | ____ _ _ __ __ _ __ |
-// | / ___| |__ ___ ___| | __ | \/ | |/ / |
-// | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
-// | | |___| | | | __/ (__| < | | | | . \ |
-// | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
-// | |
-// | Copyright Mathias Kettner 2017 mk(a)mathias-kettner.de |
-// +------------------------------------------------------------------+
-//
-// This file is part of Check_MK.
-// The official homepage is at
http://mathias-kettner.de/check_mk.
-//
-// check_mk is free software; you can redistribute it and/or modify it
-// under the terms of the GNU General Public License as published by
-// the Free Software Foundation in version 2. check_mk is distributed
-// in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
-// out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-// PARTICULAR PURPOSE. See the GNU General Public License for more de-
-// ails. You should have received a copy of the GNU General Public
-// License along with GNU Make; see the file COPYING. If not, write
-// to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
-// Boston, MA 02110-1301 USA.
-
-#ifndef SectionCrashDebug_h
-#define SectionCrashDebug_h
-
-#include "../Configurable.h"
-#include "../Section.h"
-
-class SectionCrashDebug : public Section {
- Configurable<bool> _crash_debug;
-
-public:
- SectionCrashDebug(Configuration &config, Logger *logger,
- const WinApiAdaptor &winapi);
-
-protected:
- virtual bool produceOutputInner(std::ostream &out) override;
-};
-
-#endif // SectionCrashDebug_h