Skip to content

Commit

Permalink
Merge pull request #325 from Automattic/hamorillo/remove-unused-authe…
Browse files Browse the repository at this point in the history
…ntication-code

Remove unused `authenticationBearer` code
  • Loading branch information
hamorillo authored Sep 23, 2024
2 parents 3ec2fcf + 8aeb7ec commit 54ad5e7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
4 changes: 0 additions & 4 deletions gravatar/src/main/java/com/gravatar/services/ServiceUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.gravatar.services

import com.gravatar.di.container.GravatarSdkContainer
import kotlinx.coroutines.CancellationException
import com.gravatar.di.container.GravatarSdkContainer.Companion.instance as GravatarSdkDI

internal inline fun <T> runCatchingRequest(block: () -> T?): Result<T, ErrorType> {
@Suppress("TooGenericExceptionCaught")
Expand All @@ -19,6 +18,3 @@ internal inline fun <T> runCatchingRequest(block: () -> T?): Result<T, ErrorType
Result.Failure(ex.errorType(GravatarSdkContainer.instance.gson))
}
}

internal val authenticationBearer: String?
get() = GravatarSdkDI.apiKey?.let { "Bearer $it" }
28 changes: 0 additions & 28 deletions gravatar/src/test/java/com/gravatar/services/ServiceUtilsTest.kt

This file was deleted.

0 comments on commit 54ad5e7

Please sign in to comment.