summaryrefslogtreecommitdiffstats
path: root/remote/test/puppeteer/packages/puppeteer-core/src/common/EventEmitter.ts
diff options
context:
space:
mode:
Diffstat (limited to 'remote/test/puppeteer/packages/puppeteer-core/src/common/EventEmitter.ts')
-rw-r--r--remote/test/puppeteer/packages/puppeteer-core/src/common/EventEmitter.ts36
1 files changed, 0 insertions, 36 deletions
diff --git a/remote/test/puppeteer/packages/puppeteer-core/src/common/EventEmitter.ts b/remote/test/puppeteer/packages/puppeteer-core/src/common/EventEmitter.ts
index 4a8bcb801f..0aace8b2eb 100644
--- a/remote/test/puppeteer/packages/puppeteer-core/src/common/EventEmitter.ts
+++ b/remote/test/puppeteer/packages/puppeteer-core/src/common/EventEmitter.ts
@@ -27,18 +27,6 @@ export interface CommonEventEmitter<Events extends Record<EventType, unknown>> {
handler?: Handler<Events[Key]>
): this;
emit<Key extends keyof Events>(type: Key, event: Events[Key]): boolean;
- /* To maintain parity with the built in NodeJS event emitter which uses removeListener
- * rather than `off`.
- * If you're implementing new code you should use `off`.
- */
- addListener<Key extends keyof Events>(
- type: Key,
- handler: Handler<Events[Key]>
- ): this;
- removeListener<Key extends keyof Events>(
- type: Key,
- handler: Handler<Events[Key]>
- ): this;
once<Key extends keyof Events>(
type: Key,
handler: Handler<Events[Key]>
@@ -149,30 +137,6 @@ export class EventEmitter<Events extends Record<EventType, unknown>>
}
/**
- * Remove an event listener.
- *
- * @deprecated please use {@link EventEmitter.off} instead.
- */
- removeListener<Key extends keyof EventsWithWildcard<Events>>(
- type: Key,
- handler: Handler<EventsWithWildcard<Events>[Key]>
- ): this {
- return this.off(type, handler);
- }
-
- /**
- * Add an event listener.
- *
- * @deprecated please use {@link EventEmitter.on} instead.
- */
- addListener<Key extends keyof EventsWithWildcard<Events>>(
- type: Key,
- handler: Handler<EventsWithWildcard<Events>[Key]>
- ): this {
- return this.on(type, handler);
- }
-
- /**
* Like `on` but the listener will only be fired once and then it will be removed.
* @param type - the event you'd like to listen to
* @param handler - the handler function to run when the event occurs