Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Unified Diff: src/js/collection.js

Issue 1456923003: [api] Remove deprecated and unused Set/Map::FromArray (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/contexts.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « src/contexts.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698