mirror of
https://github.com/microsoft/playwright.git
synced 2024-08-17 08:00:23 +03:00
chore: remove unused kTestSdkObjects (#31665)
This commit is contained in:
parent
297143885a
commit
459b762565
@ -37,8 +37,6 @@ export type Attribution = {
|
||||
import type { CallMetadata } from '@protocol/callMetadata';
|
||||
export type { CallMetadata } from '@protocol/callMetadata';
|
||||
|
||||
export const kTestSdkObjects = new WeakSet<SdkObject>();
|
||||
|
||||
export class SdkObject extends EventEmitter {
|
||||
guid: string;
|
||||
attribution: Attribution;
|
||||
@ -50,8 +48,6 @@ export class SdkObject extends EventEmitter {
|
||||
this.setMaxListeners(0);
|
||||
this.attribution = { ...parent.attribution };
|
||||
this.instrumentation = parent.instrumentation;
|
||||
if (process.env._PW_INTERNAL_COUNT_SDK_OBJECTS)
|
||||
kTestSdkObjects.add(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user