Skip to content

Commit b3ca539

Browse files
juanarbolruyadorno
authored andcommitted
lib: remove non used getter in lib/perf_hooks.js
PR-URL: #36907 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent acb1a71 commit b3ca539

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

lib/perf_hooks.js

-11
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ const kInsertEntry = Symbol('insert-entry');
8282
const kGetEntries = Symbol('get-entries');
8383
const kIndex = Symbol('index');
8484
const kMarks = Symbol('marks');
85-
const kCount = Symbol('count');
8685

8786
const observers = {};
8887
const observerableTypes = [
@@ -287,11 +286,6 @@ class PerformanceObserverEntryList {
287286
writable: true,
288287
enumerable: false,
289288
value: {}
290-
},
291-
[kCount]: {
292-
writable: true,
293-
enumerable: false,
294-
value: 0
295289
}
296290
});
297291
L.init(this[kEntries]);
@@ -300,11 +294,6 @@ class PerformanceObserverEntryList {
300294
[kInsertEntry](entry) {
301295
const item = { entry };
302296
L.append(this[kEntries], item);
303-
this[kCount]++;
304-
}
305-
306-
get length() {
307-
return this[kCount];
308297
}
309298

310299
[kGetEntries](name, type) {

0 commit comments

Comments
 (0)