Skip to content

Commit aa20acf

Browse files
committed
This reverts commit 37937fc.
1 parent 955850c commit aa20acf

File tree

1 file changed

+0
-3
lines changed
  • gto-support-db/src/main/java/org/ccci/gto/android/common/db

1 file changed

+0
-3
lines changed

gto-support-db/src/main/java/org/ccci/gto/android/common/db/Dao.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package org.ccci.gto.android.common.db
22

3-
import android.annotation.SuppressLint
43
import android.database.Cursor
54
import android.database.sqlite.SQLiteDatabase
65
import androidx.annotation.RestrictTo
@@ -112,9 +111,7 @@ inline fun <reified T : Any> Dao.find(vararg key: Any) = find(T::class.java, *ke
112111
inline fun <T : Any> Query<T>.get(dao: Dao) = dao.get(this)
113112
inline fun Query<*>.getCursor(dao: Dao) = dao.getCursor(this)
114113

115-
@SuppressLint("RestrictedApi")
116114
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
117115
inline fun <reified T : Any> Dao.getService() = getService(T::class.java)
118-
@SuppressLint("RestrictedApi")
119116
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
120117
inline fun <reified T : Any> Dao.getService(noinline defaultValue: () -> T) = getService(T::class.java, defaultValue)

0 commit comments

Comments
 (0)