Remove warning about old config location

The config file location was moved a long time ago so it's not really needed anymore
This commit is contained in:
WebFreak001 2017-08-24 21:10:41 +02:00
parent 843a7783c3
commit 325c717141
1 changed files with 0 additions and 17 deletions

View File

@ -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; import std.regex : ctRegex;
alias envVarRegex = ctRegex!(`\$\{([_a-zA-Z][_a-zA-Z 0-9]*)\}`); 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); return replaceAll!(m => environment.get(m[1], ""))(l, envVarRegex);
} }
warnAboutOldConfigLocation();
immutable string configLocation = getConfigurationLocation(); immutable string configLocation = getConfigurationLocation();
if (!configLocation.exists()) if (!configLocation.exists())
return []; return [];