Skip to content

Commit

Permalink
Revert "New API to support saving local only resources"
Browse files Browse the repository at this point in the history
This reverts commit 7a45e18.

The changes will be introduced by the PR google#2178
  • Loading branch information
ndegwamartin committed Sep 20, 2023
1 parent b9ded79 commit 1721a4a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions engine/src/main/java/com/google/android/fhir/FhirEngine.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ interface FhirEngine {
*/
suspend fun create(vararg resource: Resource): List<String>

suspend fun createRemote(vararg resource: Resource)

/** Loads a FHIR resource given the class and the logical ID. */
suspend fun get(type: ResourceType, id: String): Resource

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ internal class FhirEngineImpl(private val database: Database, private val contex
return database.insert(*resource)
}

override suspend fun createRemote(vararg resource: Resource) {
return database.insertRemote(*resource)
}

override suspend fun get(type: ResourceType, id: String): Resource {
return database.select(type, id)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,6 @@ open class TestDownloadManagerImpl(

object TestFhirEngineImpl : FhirEngine {
override suspend fun create(vararg resource: Resource) = emptyList<String>()
override suspend fun createRemote(vararg resource: Resource) {
TODO("Not yet implemented")
}

override suspend fun update(vararg resource: Resource) {}

Expand Down

0 comments on commit 1721a4a

Please sign in to comment.