From 743dd8f89df4521c89996762ea2b26457ef299d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Arboleda?= Date: Wed, 13 Jan 2021 08:05:19 -0500 Subject: [PATCH] lib: remove non used getter in `lib/perf_hooks.js` PR-URL: https://github.com/nodejs/node/pull/36907 Reviewed-By: James M Snell Reviewed-By: Antoine du Hamel --- lib/perf_hooks.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/perf_hooks.js b/lib/perf_hooks.js index 5cbf018ff8efae..a5b0fdf1f60028 100644 --- a/lib/perf_hooks.js +++ b/lib/perf_hooks.js @@ -82,7 +82,6 @@ const kInsertEntry = Symbol('insert-entry'); const kGetEntries = Symbol('get-entries'); const kIndex = Symbol('index'); const kMarks = Symbol('marks'); -const kCount = Symbol('count'); const observers = {}; const observerableTypes = [ @@ -287,11 +286,6 @@ class PerformanceObserverEntryList { writable: true, enumerable: false, value: {} - }, - [kCount]: { - writable: true, - enumerable: false, - value: 0 } }); L.init(this[kEntries]); @@ -300,11 +294,6 @@ class PerformanceObserverEntryList { [kInsertEntry](entry) { const item = { entry }; L.append(this[kEntries], item); - this[kCount]++; - } - - get length() { - return this[kCount]; } [kGetEntries](name, type) {