HashMapper

- Cleaned up
This commit is contained in:
Tristan B. Velloza Kildaire 2024-04-07 13:39:22 +02:00
parent 475a1562dc
commit e4b9b5a36b
1 changed files with 0 additions and 6 deletions

View File

@ -147,14 +147,8 @@ public class HashMapper : SymbolMapper
// Generate the name as `_<hex(<path>)>`
import std.digest : toHexString, LetterCase;
import std.digest.md : md5Of;
version(unittest) { writeln(format("hashMapper, prior to hashing the symbol name is: '%s'", path)); }
string mappedSymbol = format("t_%s", toHexString!(LetterCase.lower)(md5Of(path)));
version(unittest) { writeln(format("hashMapper, AFTER hashing symbol name is: '%s'", mappedSymbol)); }
return mappedSymbol;
}
}