removed unneccesary code
This commit is contained in:
parent
688d0ae5d8
commit
027df3f7ba
1 changed files with 0 additions and 6 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue