]> granicus.if.org Git - icinga2/commitdiff
Remove leftover for sysconfig file parsing 6384/head
authorMichael Friedrich <michael.friedrich@icinga.com>
Mon, 18 Jun 2018 17:25:48 +0000 (19:25 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Mon, 18 Jun 2018 17:25:48 +0000 (19:25 +0200)
refs #6255

icinga-app/icinga.cpp
lib/base/application.cpp
lib/base/application.hpp

index 0e462307c56ca757e0277996edcfdeb049a1ef98..404cedf30582f8def176ca2e7eb363f14c2d22eb 100644 (file)
@@ -143,7 +143,6 @@ static int Main()
 
 #endif /* _WIN32 */
                Application::DeclarePrefixDir(ICINGA_PREFIX);
-               Application::DeclareSysconfigFile(ICINGA_SYSCONFIGFILE);
                Application::DeclareSysconfDir(ICINGA_SYSCONFDIR);
                Application::DeclareRunDir(ICINGA_RUNDIR);
                Application::DeclareLocalStateDir(ICINGA_LOCALSTATEDIR);
@@ -155,13 +154,6 @@ static int Main()
 
        Application::DeclareZonesDir(Application::GetSysconfDir() + "/icinga2/zones.d");
 
-#ifndef _WIN32
-       if (!autocomplete && !Utility::PathExists(Application::GetSysconfigFile())) {
-               Log(LogWarning, "icinga-app")
-                       << "Sysconfig file '" << Application::GetSysconfigFile() << "' cannot be read. Using default values.";
-       }
-#endif /* _WIN32 */
-
        String icingaUser = Utility::GetFromEnvironment("ICINGA2_USER");
        if (icingaUser.IsEmpty())
                icingaUser = ICINGA_USER;
index 1ee51f88c48fa2b49ac6edcfd3ad0ff770818a30..dec962e088aa66e1526d9117eb25f3c7c715cf5e 100644 (file)
@@ -1325,27 +1325,6 @@ void Application::DeclareStatePath(const String& path)
                ScriptGlobal::Set("StatePath", path);
 }
 
-/**
- * Retrives the path of the sysconfig file.
- *
- * @returns The path.
- */
-String Application::GetSysconfigFile(void)
-{
-       return ScriptGlobal::Get("SysconfigFile");
-}
-
-/**
- * Sets the path of the sysconfig file.
- *
- * @param path The new path.
- */
-void Application::DeclareSysconfigFile(const String& path)
-{
-       if (!ScriptGlobal::Exists("SysconfigFile"))
-               ScriptGlobal::Set("SysconfigFile", path);
-}
-
 /**
  * Retrieves the path for the modified attributes file.
  *
index 03d83599b02be5fd03ee14b479ee2c8fe6e075cd..7722d25f4c31d070c923994b2d7827ef71af795a 100644 (file)
@@ -106,9 +106,6 @@ public:
        static String GetIncludeConfDir();
        static void DeclareIncludeConfDir(const String& path);
 
-       static String GetSysconfigFile(void);
-       static void DeclareSysconfigFile(const String& path);
-
        static String GetStatePath(void);
        static void DeclareStatePath(const String& path);