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';
|
import type { CallMetadata } from '@protocol/callMetadata';
|
||||||
export type { CallMetadata } from '@protocol/callMetadata';
|
export type { CallMetadata } from '@protocol/callMetadata';
|
||||||
|
|
||||||
export const kTestSdkObjects = new WeakSet<SdkObject>();
|
|
||||||
|
|
||||||
export class SdkObject extends EventEmitter {
|
export class SdkObject extends EventEmitter {
|
||||||
guid: string;
|
guid: string;
|
||||||
attribution: Attribution;
|
attribution: Attribution;
|
||||||
|
|
@ -50,8 +48,6 @@ export class SdkObject extends EventEmitter {
|
||||||
this.setMaxListeners(0);
|
this.setMaxListeners(0);
|
||||||
this.attribution = { ...parent.attribution };
|
this.attribution = { ...parent.attribution };
|
||||||
this.instrumentation = parent.instrumentation;
|
this.instrumentation = parent.instrumentation;
|
||||||
if (process.env._PW_INTERNAL_COUNT_SDK_OBJECTS)
|
|
||||||
kTestSdkObjects.add(this);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue