From d2650df8b65e0b809cc30de0975ff3f876b00640 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 13 Feb 2013 11:48:19 +0100 Subject: [PATCH] Cleaned up the Process class. --- lib/base/process-unix.cpp | 3 --- lib/base/process-windows.cpp | 4 ---- lib/base/process.cpp | 6 +----- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/lib/base/process-unix.cpp b/lib/base/process-unix.cpp index 17eb7e8f8..f2ad37914 100644 --- a/lib/base/process-unix.cpp +++ b/lib/base/process-unix.cpp @@ -19,10 +19,7 @@ #ifndef _WIN32 #include "i2-base.h" - -#ifndef _MSC_VER #include -#endif /* _MSC_VER */ using namespace icinga; diff --git a/lib/base/process-windows.cpp b/lib/base/process-windows.cpp index 954644b71..d6db2df03 100644 --- a/lib/base/process-windows.cpp +++ b/lib/base/process-windows.cpp @@ -20,10 +20,6 @@ #ifdef _WIN32 #include "i2-base.h" -#ifndef _MSC_VER -#include -#endif /* _MSC_VER */ - using namespace icinga; void Process::CreateWorkers(void) diff --git a/lib/base/process.cpp b/lib/base/process.cpp index 3ac71fb53..f49a05cfb 100644 --- a/lib/base/process.cpp +++ b/lib/base/process.cpp @@ -19,10 +19,6 @@ #include "i2-base.h" -#ifndef _MSC_VER -#include -#endif /* _MSC_VER */ - using namespace icinga; bool Process::m_WorkersCreated = false; @@ -42,7 +38,7 @@ Process::Process(const vector& arguments, const Dictionary::Ptr& extraEn #ifndef _WIN32 m_FD = -1; -#endif /* _MSC_VER */ +#endif /* _WIN32 */ } vector Process::ParseCommand(const String& command)