Skip to content

Commit 6359f9f

Browse files
committed
remove unused enableLogger setting
1 parent c20b93d commit 6359f9f

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

src/androidMain/kotlin/com/adamratzman/spotify/auth/pkce/AbstractSpotifyPkceLoginActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public abstract class AbstractSpotifyPkceLoginActivity : AppCompatActivity() {
5353
* Custom logic to invoke when loading begins ([isLoading] is true) or ends ([isLoading] is false).
5454
* You can update the view here.
5555
*/
56-
public open fun setLoadingContent(isLoading: Boolean) = {}
56+
public open fun setLoadingContent(isLoading: Boolean): () -> Unit = {}
5757

5858
private lateinit var authorizationIntent: Intent
5959
private lateinit var credentialStore: SpotifyDefaultCredentialStore

src/commonJvmLikeTest/kotlin/com/adamratzman/spotify/CommonImpl.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ private suspend fun buildSpotifyApiInternal(): GenericSpotifyApi? {
3838

3939
val optionsCreator: (SpotifyApiOptions.() -> Unit) = {
4040
this.enableDebugMode = logHttp
41-
this.enableLogger = logHttp
4241
}
4342

4443
return when {

src/commonMain/kotlin/com.adamratzman.spotify/SpotifyApiBuilder.kt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -663,12 +663,6 @@ public class SpotifyApiBuilder(
663663
public fun retryWhenRateLimited(retryWhenRateLimited: Boolean): SpotifyApiBuilder =
664664
apply { this.options.retryWhenRateLimited = retryWhenRateLimited }
665665

666-
/**
667-
* Set whether to enable to the exception logger
668-
*/
669-
public fun enableLogger(enableLogger: Boolean): SpotifyApiBuilder =
670-
apply { this.options.enableLogger = enableLogger }
671-
672666
/**
673667
* Set the maximum time, in milliseconds, before terminating an http request
674668
*/
@@ -1133,7 +1127,6 @@ public class SpotifyUserAuthorization(
11331127
* @param cacheLimit The maximum amount of cached requests allowed at one time. Null means no limit
11341128
* @param automaticRefresh Enable or disable automatic refresh of the Spotify access token
11351129
* @param retryWhenRateLimited Set whether to block the current thread and wait until the API can retry the request
1136-
* @param enableLogger Set whether to enable to the exception logger
11371130
* @param testTokenValidity After API creation, test whether the token is valid by performing a lightweight request
11381131
* @param defaultLimit The default amount of objects to retrieve in one request
11391132
* @param json The Json serializer/deserializer instance
@@ -1155,7 +1148,6 @@ public data class SpotifyApiOptions(
11551148
public var cacheLimit: Int? = 200,
11561149
public var automaticRefresh: Boolean = true,
11571150
public var retryWhenRateLimited: Boolean = true,
1158-
public var enableLogger: Boolean = true,
11591151
public var testTokenValidity: Boolean = false,
11601152
public var defaultLimit: Int = 50,
11611153
public var allowBulkRequests: Boolean = true,

0 commit comments

Comments
 (0)