mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-02-16 20:01:49 -05:00
removed duplicate merge
This commit is contained in:
parent
8f3406cb0e
commit
64cab4d137
1 changed files with 0 additions and 12 deletions
|
@ -33,18 +33,6 @@ class MapTools
|
|||
return map.copy();
|
||||
}
|
||||
|
||||
public static function merge<K, T>(a:Map<K, T>, b:Map<K, T>):Map<K, T>
|
||||
{
|
||||
var result = a.copy();
|
||||
|
||||
for (pair in b.keyValueIterator())
|
||||
{
|
||||
result.set(pair.key, pair.value);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new map which is a combination of the two given maps.
|
||||
* @param a The base map.
|
||||
|
|
Loading…
Reference in a new issue