Skip to content

Commit 43cd979

Browse files
chore: clean up unused imports and arguments
1 parent 60270f8 commit 43cd979

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

android/src/main/java/com/youversion/reactnativesdk/RNYouVersionPlatformModule.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,8 @@ class RNYouVersionPlatformModule : Module() {
5757
}
5858

5959
AsyncFunction("chapter") Coroutine { bibleReference: BibleReferenceRecord ->
60-
val context = appContext.reactContext
61-
?: throw IllegalStateException("ReactContext is not available yet")
62-
6360
return@Coroutine YVPBibleApi.chapter(
64-
bibleReference = bibleReference,
65-
context = context
61+
bibleReference = bibleReference
6662
)
6763
}
6864

android/src/main/java/com/youversion/reactnativesdk/api/YVPBibleApi.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ package com.youversion.reactnativesdk.api
22

33
import android.content.Context
44
import com.youversion.platform.core.api.YouVersionApi
5-
import com.youversion.platform.core.bibles.domain.BibleReference
6-
import com.youversion.platform.core.bibles.domain.BibleVersionRepository
75

86
object YVPBibleApi {
97
suspend fun versions(languageTag: String?): List<BibleVersionRecord> {
@@ -26,7 +24,7 @@ object YVPBibleApi {
2624
return record
2725
}
2826

29-
suspend fun chapter(bibleReference: BibleReferenceRecord, context: Context): String {
27+
suspend fun chapter(bibleReference: BibleReferenceRecord): String {
3028
val passageId = bibleReference.bookUSFM + "." + bibleReference.chapter.toString()
3129

3230
val response = YouVersionApi.bible.passage(

0 commit comments

Comments
 (0)