Merge pull request #412 from WebFreak001/drop-config-upgrade

Remove warning about old config location
This commit is contained in:
Mark Rz 2017-09-20 19:49:12 -04:00 committed by GitHub
commit e503d94b93
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;
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 [];