diff --git a/source/substitution.d b/source/substitution.d index 0937dc2..e10bf65 100644 --- a/source/substitution.d +++ b/source/substitution.d @@ -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 {