Skip to content

Commit

Permalink
Remove obsolete custom Exception, UnsupportedPlatform
Browse files Browse the repository at this point in the history
Use UnsupportedError instead
  • Loading branch information
erdemyerebasmaz committed Apr 18, 2024
1 parent 072321e commit 6df226f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions libs/sdk-flutter/lib/native_toolkit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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!;
Expand Down

0 comments on commit 6df226f

Please sign in to comment.