From 325c71714146f3b6edc1e51203f857ce484e659c Mon Sep 17 00:00:00 2001 From: WebFreak001 Date: Thu, 24 Aug 2017 21:10:41 +0200 Subject: [PATCH] Remove warning about old config location The config file location was moved a long time ago so it's not really needed anymore --- src/server/server.d | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/server/server.d b/src/server/server.d index b01d28f..c18f5f1 100644 --- a/src/server/server.d +++ b/src/server/server.d @@ -65,22 +65,6 @@ string getConfigurationLocation() } } -/** - * Prints a warning message to the user when an old config file is detected. - */ -void warnAboutOldConfigLocation() -{ - version (linux) if ("~/.config/dcd".expandTilde().exists() - && "~/.config/dcd".expandTilde().isFile()) - { - warning("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"); - warning("!! Upgrade warning:"); - warning("!! '~/.config/dcd' should be moved to '$XDG_CONFIG_HOME/dcd/dcd.conf'"); - warning("!! or '$HOME/.config/dcd/dcd.conf'"); - warning("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"); - } -} - import std.regex : ctRegex; alias envVarRegex = ctRegex!(`\$\{([_a-zA-Z][_a-zA-Z 0-9]*)\}`); @@ -104,7 +88,6 @@ string[] loadConfiguredImportDirs() return replaceAll!(m => environment.get(m[1], ""))(l, envVarRegex); } - warnAboutOldConfigLocation(); immutable string configLocation = getConfigurationLocation(); if (!configLocation.exists()) return [];