Skip to content

Commit 459b762

Browse files
authored
chore: remove unused kTestSdkObjects (microsoft#31665)
1 parent 2971438 commit 459b762

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

packages/playwright-core/src/server/instrumentation.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ export type Attribution = {
3737
import type { CallMetadata } from '@protocol/callMetadata';
3838
export type { CallMetadata } from '@protocol/callMetadata';
3939

40-
export const kTestSdkObjects = new WeakSet<SdkObject>();
41-
4240
export class SdkObject extends EventEmitter {
4341
guid: string;
4442
attribution: Attribution;
@@ -50,8 +48,6 @@ export class SdkObject extends EventEmitter {
5048
this.setMaxListeners(0);
5149
this.attribution = { ...parent.attribution };
5250
this.instrumentation = parent.instrumentation;
53-
if (process.env._PW_INTERNAL_COUNT_SDK_OBJECTS)
54-
kTestSdkObjects.add(this);
5551
}
5652
}
5753

0 commit comments

Comments
 (0)