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

Unified Diff: tracing/tracing/base/iteration_helpers.html

Issue 2955043002: Remove tr.b.asArray. (Closed)
Patch Set: Created 3 years, 6 months 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 | « no previous file | tracing/tracing/base/iteration_helpers_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/base/iteration_helpers.html
diff --git a/tracing/tracing/base/iteration_helpers.html b/tracing/tracing/base/iteration_helpers.html
index 18e5eb8e7a638cdec5f6191a3252cb63bca5157d..fb428b7fd5df9e8b6b191e48acd0a093a563dc1d 100644
--- a/tracing/tracing/base/iteration_helpers.html
+++ b/tracing/tracing/base/iteration_helpers.html
@@ -11,25 +11,6 @@ found in the LICENSE file.
'use strict';
tr.exportTo('tr.b', function() {
- /**
- * Converts any object which is either (a) an iterable, or (b) an
- * "array-ish" object (has length property and can be indexed into)
- * into an array.
- */
- function asArray(x) {
- const values = [];
- if (x[Symbol.iterator]) {
- for (const value of x) {
- values.push(value);
- }
- } else {
- for (let i = 0; i < x.length; i++) {
- values.push(x[i]);
- }
- }
- return values;
- }
-
/**
* Returns the only element in the iterable. If the iterable is empty or has
* more than one element, an error is thrown.
@@ -343,7 +324,6 @@ tr.exportTo('tr.b', function() {
}
return {
- asArray,
concatenateObjects,
compareArrays,
comparePossiblyUndefinedValues,
« no previous file with comments | « no previous file | tracing/tracing/base/iteration_helpers_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698