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

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

‎lib/perf_hooks.js‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ const kInsertEntry = Symbol('insert-entry');
8282
constkGetEntries=Symbol('get-entries');
8383
constkIndex=Symbol('index');
8484
constkMarks=Symbol('marks');
85-
constkCount=Symbol('count');
8685

8786
constobservers={};
8887
constobserverableTypes=[
@@ -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
constitem={ entry };
302296
L.append(this[kEntries],item);
303-
this[kCount]++;
304-
}
305-
306-
getlength(){
307-
returnthis[kCount];
308297
}
309298

310299
[kGetEntries](name,type){

0 commit comments

Comments
 (0)