Skip to content

Commit

Permalink
refactor(deriv_passkeys): removed unused api calls
Browse files Browse the repository at this point in the history
  • Loading branch information
bassam-deriv committed Mar 20, 2024
1 parent 861009a commit df67b57
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions lib/api/response/passkeys_options_response_result.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,32 +49,6 @@ class PasskeysOptionsResponse extends PasskeysOptionsResponseModel {
return resultMap;
}

static final BaseAPI _api = Injector()<BaseAPI>();

/// List all passkeys options.
static Future<PasskeysOptionsResponse> fetch(
PasskeysOptionsRequest request,
) async {
final PasskeysOptionsReceive response = await fetchRaw(request);

return PasskeysOptionsResponse.fromJson(response.toJson());
}

/// Fetches raw passkeys options response.
static Future<PasskeysOptionsReceive> fetchRaw(
PasskeysOptionsRequest request,
) async {
final PasskeysOptionsReceive response = await _api.call(request: request);

checkException(
response: response,
exceptionCreator: ({BaseExceptionModel? baseExceptionModel}) =>
BaseAPIException(baseExceptionModel: baseExceptionModel),
);

return response;
}

/// Creates a copy of instance with given parameters.
PasskeysOptionsResponse copyWith({
PasskeysOptions? passkeysOptions,
Expand Down

0 comments on commit df67b57

Please sign in to comment.