refactor: kill MapWrapper

This commit is contained in:
Victor Berchet
2016-11-03 17:05:03 -07:00
committed by vikerman
parent ec92f4b198
commit 2a3f4d7b17
2 changed files with 14 additions and 22 deletions

View File

@ -8,16 +8,6 @@
import {getSymbolIterator, isJsObject, isPresent} from './lang';
export class MapWrapper {
static createFromStringMap<T>(stringMap: {[key: string]: T}): Map<string, T> {
const result = new Map<string, T>();
for (let prop in stringMap) {
result.set(prop, stringMap[prop]);
}
return result;
}
}
/**
* Wraps Javascript Objects
*/