From 3c8d5c8f732239a8b50418be27464e30b9dddeae Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 17 Oct 2025 08:37:30 +0800 Subject: Exception remove string. --- src/platform/Exception.cpp | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'src/platform/Exception.cpp') diff --git a/src/platform/Exception.cpp b/src/platform/Exception.cpp index 744404e0..6a718f63 100644 --- a/src/platform/Exception.cpp +++ b/src/platform/Exception.cpp @@ -17,15 +17,6 @@ PlatformNotMatchException::PlatformNotMatchException( AppendMessage(additional_message); } -PlatformNotMatchException::PlatformNotMatchException( - StringView resource_platform, StringView target_platform, - std::optional additional_message) - : PlatformNotMatchException( - resource_platform.ToUtf8(), target_platform.ToUtf8(), - additional_message.has_value() - ? std::make_optional(additional_message->ToUtf8()) - : std::nullopt) {} - PlatformNotMatchException::~PlatformNotMatchException() {} PlatformUnsupportedException::PlatformUnsupportedException( @@ -39,23 +30,5 @@ PlatformUnsupportedException::PlatformUnsupportedException( AppendMessage(additional_message); } -PlatformUnsupportedException::PlatformUnsupportedException( - StringView platform, StringView operation, - std::optional additional_message) - : PlatformUnsupportedException( - platform.ToUtf8(), operation.ToUtf8(), - additional_message.has_value() - ? std::make_optional(additional_message->ToUtf8()) - : std::nullopt) {} - PlatformUnsupportedException::~PlatformUnsupportedException() {} - -String PlatformUnsupportedException::GetPlatform() const { - return String::FromUtf8(platform_); -} - -String PlatformUnsupportedException::GetOperation() const { - return String::FromUtf8(operation_); -} - } // namespace cru::platform -- cgit v1.2.3