mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: remove unused _waitingForObject from Connection (#11474)
This commit is contained in:
parent
b1fb963851
commit
4d42f6a1c4
@ -57,7 +57,6 @@ class Root extends ChannelOwner<channels.RootChannel> {
|
||||
|
||||
export class Connection extends EventEmitter {
|
||||
readonly _objects = new Map<string, ChannelOwner>();
|
||||
private _waitingForObject = new Map<string, any>();
|
||||
onmessage = (message: object): void => {};
|
||||
private _lastId = 0;
|
||||
private _callbacks = new Map<number, { resolve: (a: any) => void, reject: (a: Error) => void, stackTrace: ParsedStackTrace | null }>();
|
||||
@ -267,11 +266,6 @@ export class Connection extends EventEmitter {
|
||||
default:
|
||||
throw new Error('Missing type ' + type);
|
||||
}
|
||||
const callback = this._waitingForObject.get(guid);
|
||||
if (callback) {
|
||||
callback(result);
|
||||
this._waitingForObject.delete(guid);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user