diff --git a/frameworks/emitter/ani/ets/@ohos.events.emitter.ets b/frameworks/emitter/ani/ets/@ohos.events.emitter.ets index b024039cf90bfa1326e92b7609478ce43c945aaa..9ab3a71096e2d55cbc2a1dfea9a0bebf7049b78c 100644 --- a/frameworks/emitter/ani/ets/@ohos.events.emitter.ets +++ b/frameworks/emitter/ani/ets/@ohos.events.emitter.ets @@ -96,13 +96,6 @@ namespace emitter { } } - export function on(eventId: string, callback: Callback): void { - if (eventId === '' || callback == null) { - return; - } - emitter.OnOrOnceStringSync(eventId, false, callback, "eventData"); - } - export function once(eventId: string, callback: Callback): void { if (eventId === '' || callback == null) { return; @@ -117,13 +110,6 @@ namespace emitter { OffStringIdSync(eventId); } - export function off(eventId: string, callback: Callback): void { - if (eventId === '' || callback == null) { - return; - } - emitter.OffStringSync(eventId, callback); - } - export function off(eventId: string, callback: Callback | Callback>): void { if (eventId === '' || callback == null) { return;