diff --git a/engine/src/flutter/shell/platform/common/cpp/client_wrapper/include/flutter/event_sink.h b/engine/src/flutter/shell/platform/common/cpp/client_wrapper/include/flutter/event_sink.h index 8c3a3d9fc0..03c06398fc 100644 --- a/engine/src/flutter/shell/platform/common/cpp/client_wrapper/include/flutter/event_sink.h +++ b/engine/src/flutter/shell/platform/common/cpp/client_wrapper/include/flutter/event_sink.h @@ -21,24 +21,12 @@ class EventSink { EventSink(EventSink const&) = delete; EventSink& operator=(EventSink const&) = delete; - // DEPRECATED. Use the reference version below. This will be removed in the - // near future. - void Success(const T* event) { SuccessInternal(event); } - // Consumes a successful event void Success(const T& event) { SuccessInternal(&event); } // Consumes a successful event. void Success() { SuccessInternal(nullptr); } - // DEPRECATED. Use the reference version below. This will be removed in the - // near future. - void Error(const std::string& error_code, - const std::string& error_message, - const T* error_details) { - ErrorInternal(error_code, error_message, error_details); - } - // Consumes an error event. void Error(const std::string& error_code, const std::string& error_message, diff --git a/engine/src/flutter/shell/platform/common/cpp/client_wrapper/include/flutter/method_result.h b/engine/src/flutter/shell/platform/common/cpp/client_wrapper/include/flutter/method_result.h index fd7e40dd57..90663f00fb 100644 --- a/engine/src/flutter/shell/platform/common/cpp/client_wrapper/include/flutter/method_result.h +++ b/engine/src/flutter/shell/platform/common/cpp/client_wrapper/include/flutter/method_result.h @@ -24,10 +24,6 @@ class MethodResult { MethodResult(MethodResult const&) = delete; MethodResult& operator=(MethodResult const&) = delete; - // DEPRECATED. Use the reference versions below. This will be removed in the - // near future. - void Success(const T* result) { SuccessInternal(result); } - // Sends a success response, indicating that the call completed successfully // with the given result. void Success(const T& result) { SuccessInternal(&result); } @@ -36,14 +32,6 @@ class MethodResult { // with no result. void Success() { SuccessInternal(nullptr); } - // DEPRECATED. Use the reference versions below. This will be removed in the - // near future. - void Error(const std::string& error_code, - const std::string& error_message, - const T* error_details) { - ErrorInternal(error_code, error_message, error_details); - } - // Sends an error response, indicating that the call was understood but // handling failed in some way. // diff --git a/engine/src/flutter/shell/platform/glfw/platform_handler.cc b/engine/src/flutter/shell/platform/glfw/platform_handler.cc index a24afeef87..e2a6792126 100644 --- a/engine/src/flutter/shell/platform/glfw/platform_handler.cc +++ b/engine/src/flutter/shell/platform/glfw/platform_handler.cc @@ -69,7 +69,7 @@ void PlatformHandler::HandleMethodCall( rapidjson::Document::AllocatorType& allocator = document.GetAllocator(); document.AddMember(rapidjson::Value(kTextKey, allocator), rapidjson::Value(clipboardData, allocator), allocator); - result->Success(&document); + result->Success(document); } else if (method.compare(kSetClipboardDataMethod) == 0) { if (!window_) { result->Error(kNoWindowError,