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 targos committed May 1, 2021
1 parent 93517dc commit d78e2ed
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 @@ -75,7 +75,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 @@ -280,11 +279,6 @@ class PerformanceObserverEntryList {
writable: true,
enumerable: false,
value: {}
},
[kCount]: {
writable: true,
enumerable: false,
value: 0
}
});
L.init(this[kEntries]);
Expand All @@ -293,11 +287,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 d78e2ed

Please sign in to comment.