diff --git a/bundle.json b/bundle.json index c0418e772a7e52f6d250d32889eafb6b5a9e9547..e21f0981a2619cb656e9af5e7a707103b7788968 100644 --- a/bundle.json +++ b/bundle.json @@ -63,8 +63,7 @@ "message_handler.h", "peruser_session.h", "peruser_setting.h", - "platform.h", - "platform_callback_stub.h" + "platform.h" ], "header_base": "//base/miscservices/inputmethod/services/include" } diff --git a/services/BUILD.gn b/services/BUILD.gn index 7bfa3b9b0b2c8f3d43e8abac508dce2a349f367d..f93cf62c9a6d62a4a74bf5457a40d22f8a07946f 100644 --- a/services/BUILD.gn +++ b/services/BUILD.gn @@ -46,7 +46,6 @@ ohos_shared_library("inputmethod_service") { "src/peruser_session.cpp", "src/peruser_setting.cpp", "src/platform.cpp", - "src/platform_callback_stub.cpp", ] configs = [ ":inputmethod_services_native_config" ] diff --git a/services/src/platform.cpp b/services/src/platform.cpp index 046a6a570cc1816dda21aebd3408e551a79b0f36..6bb7a27b0d5c1bb39518a065f7e0917a11eb94ce 100644 --- a/services/src/platform.cpp +++ b/services/src/platform.cpp @@ -15,15 +15,12 @@ #include "global.h" #include "platform.h" -#include "platform_callback_stub.h" namespace OHOS { namespace MiscServices { void Platform::SetPlatform(const sptr < IPlatformApi >& platformApi) { this->platformApi = platformApi; - sptr < IPlatformCallback > cb = new PlatformCallbackStub(); - this->platformApi->registerCallback(cb); } /*! Constructor