Skip to content

Commit

Permalink
lib: remove non used getter in lib/perf_hooks.js
Browse files Browse the repository at this point in the history
PR-URL: #36907
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
juanarbol authored and aduh95 committed Jan 19, 2021
1 parent fef2128 commit acbd3a4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/perf_hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down Expand Up @@ -287,11 +286,6 @@ class PerformanceObserverEntryList {
writable: true,
enumerable: false,
value: {}
},
[kCount]: {
writable: true,
enumerable: false,
value: 0
}
});
L.init(this[kEntries]);
Expand All @@ -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) {
Expand Down

0 comments on commit acbd3a4

Please sign in to comment.