From 6df226f18b58a76610603bb9a510810c52c8e97e Mon Sep 17 00:00:00 2001 From: Erdem Yerebasmaz Date: Thu, 18 Apr 2024 16:41:48 +0300 Subject: [PATCH] Remove obsolete custom Exception, UnsupportedPlatform Use UnsupportedError instead --- libs/sdk-flutter/lib/native_toolkit.dart | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libs/sdk-flutter/lib/native_toolkit.dart b/libs/sdk-flutter/lib/native_toolkit.dart index d1a8d98a3..8c0dc7161 100644 --- a/libs/sdk-flutter/lib/native_toolkit.dart +++ b/libs/sdk-flutter/lib/native_toolkit.dart @@ -7,10 +7,6 @@ ExternalLibrary? _breezSDK; const _libName = "breez_sdk_bindings"; const _iosLibName = "breez_sdkFFI"; -class UnsupportedPlatform implements Exception { - UnsupportedPlatform(String s); -} - ExternalLibrary createLibraryImpl() { if (_breezSDK == null) { if (Platform.isAndroid || Platform.isLinux) { @@ -26,7 +22,7 @@ ExternalLibrary createLibraryImpl() { _breezSDK = ExternalLibrary.process(iKnowHowToUseIt: true); } } else { - throw UnsupportedPlatform('${Platform.operatingSystem} is not yet supported!'); + throw UnsupportedError('${Platform.operatingSystem} is not yet supported!'); } } return _breezSDK!;