removed unneccesary code

This commit is contained in:
Johannes Loher 2016-12-29 13:14:48 +01:00
parent 688d0ae5d8
commit 027df3f7ba

View file

@ -5,7 +5,6 @@ public:
void loadSubstitutionFile(string fileName)
{
import std.file : slurp, exists, isFile;
import std.array : assocArray;
import std.algorithm.iteration : each;
if (fileName.exists && fileName.isFile)
@ -13,11 +12,6 @@ void loadSubstitutionFile(string fileName)
auto data = slurp!(string, string)(fileName, `"%s" = "%s"`);
map = (string[string]).init;
data.each!(pair => map[pair[0]] = pair[1]);
foreach (pair; data)
{
map[pair[0]] = pair[1];
}
map.rehash;
}
else
{