diff --git a/frameworks/emitter/ani/ets/@ohos.events.emitter.ets b/frameworks/emitter/ani/ets/@ohos.events.emitter.ets index 08217c28ec1c7eb538a1cf8196dc109f213cec3e..12c142a94f2ca4949905451441ac1f8a8ae39804 100644 --- a/frameworks/emitter/ani/ets/@ohos.events.emitter.ets +++ b/frameworks/emitter/ani/ets/@ohos.events.emitter.ets @@ -87,13 +87,6 @@ namespace emitter { } } - export function on(eventId: string, callback: Callback): void { - if (eventId === '' || callback == null) { - return; - } - emitter.OnOrOnceStringSync(eventId, false, callback, "eventData"); - } - export function on(eventId: string, callback: Callback | Callback>): void { if (eventId === '' || callback == null) { return; @@ -136,13 +129,6 @@ namespace emitter { OffNumberCallbackSync(eventId, callback); } - export function off(eventId: string, callback: Callback): void { - if (eventId === '') { - return; - } - emitter.OffStringSync(eventId, callback); - } - export function off(eventId: string, callback: Callback | Callback>): void { if (eventId === '') { return;