refactoring: make projectMainIdx typesafe

This commit is contained in:
Andreas Rumpf 2018-05-27 22:30:36 +02:00
commit 545b1582cd
7 changed files with 17 additions and 21 deletions

View file

@ -253,7 +253,3 @@ proc loadConfigs*(cfg: string; cache: IdentCache; conf: ConfigRef) =
if not fileExists(projectConfig):
projectConfig = changeFileExt(conf.projectFull, "nim.cfg")
readConfigFile(projectConfig, cache, conf)
proc loadConfigs*(cfg: string; conf: ConfigRef) =
# for backwards compatibility only.
loadConfigs(cfg, newIdentCache(), conf)