aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/dbflow/DbUtils.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-11-06 00:13:53 -0500
committerGitHub <noreply@github.com>2017-11-06 00:13:53 -0500
commitfc4a018d4862f6d64b6a4c737d90c46574bbf92b (patch)
tree247a62bf0c5ee69d2d0d09e58059c8add7d47f03 /app/src/main/kotlin/com/pitchedapps/frost/dbflow/DbUtils.kt
parentd82a9b9e2965b3e674aa0e654cfca55398a508a7 (diff)
downloadfrost-fc4a018d4862f6d64b6a4c737d90c46574bbf92b.tar.gz
frost-fc4a018d4862f6d64b6a4c737d90c46574bbf92b.tar.bz2
frost-fc4a018d4862f6d64b6a4c737d90c46574bbf92b.zip
Update dependency and address deprecations (#473)
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/dbflow/DbUtils.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/dbflow/DbUtils.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/dbflow/DbUtils.kt b/app/src/main/kotlin/com/pitchedapps/frost/dbflow/DbUtils.kt
index bb2627a5..f5c962ed 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/dbflow/DbUtils.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/dbflow/DbUtils.kt
@@ -17,8 +17,8 @@ object DbUtils {
}
-inline fun <reified T : Any> List<T>.replace(context: Context, dbName: String) {
+inline fun <reified T : Any> List<T>.replace(dbName: String) {
L.d("Replacing $dbName.db")
- DbUtils.db(dbName).reset(context)
+ DbUtils.db(dbName).reset()
FastStoreModelTransaction.saveBuilder(FlowManager.getModelAdapter(T::class.java)).addAll(this).build()
} \ No newline at end of file