Index: src/js/collection.js |
diff --git a/src/js/collection.js b/src/js/collection.js |
index 050c37b5bd47223d356637f37dc26b79bec14110..6d75f4a5bd7646607fa4e6dd6b5317715c699f4c 100644 |
--- a/src/js/collection.js |
+++ b/src/js/collection.js |
@@ -461,26 +461,6 @@ utils.InstallFunctions(GlobalMap.prototype, DONT_ENUM, [ |
"forEach", MapForEach |
]); |
-function MapFromArray(array) { |
- var map = new GlobalMap; |
- var length = array.length; |
- for (var i = 0; i < length; i += 2) { |
- var key = array[i]; |
- var value = array[i + 1]; |
- %_Call(MapSet, map, key, value); |
- } |
- return map; |
-}; |
- |
-function SetFromArray(array) { |
- var set = new GlobalSet; |
- var length = array.length; |
- for (var i = 0; i < length; ++i) { |
- %_Call(SetAdd, set, array[i]); |
- } |
- return set; |
-}; |
- |
// ----------------------------------------------------------------------- |
// Exports |
@@ -492,8 +472,6 @@ function SetFromArray(array) { |
"set_add", SetAdd, |
"set_has", SetHas, |
"set_delete", SetDelete, |
- "map_from_array", MapFromArray, |
- "set_from_array",SetFromArray, |
]); |
utils.Export(function(to) { |