chore: remove unused _waitingForObject from Connection (#11474)

This commit is contained in:
campersau 2022-01-24 18:58:57 +01:00 committed by GitHub
parent b1fb963851
commit 4d42f6a1c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}