From 027df3f7ba2d9f1ba4692af66b2d553cb22b4bd1 Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Thu, 29 Dec 2016 13:14:48 +0100 Subject: [PATCH] removed unneccesary code --- source/substitution.d | 6 ------ 1 file changed, 6 deletions(-) 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 {