From 0f4a62b7bfccc47765023954a543abc3f95e7afc Mon Sep 17 00:00:00 2001 From: ganfra Date: Wed, 17 Oct 2018 15:35:26 +0200 Subject: [PATCH] Remove persistence package for the moment --- .../matrix/android/api/persitence/Persister.kt | 15 --------------- .../vector/matrix/android/api/persitence/Query.kt | 11 ----------- .../matrix/android/api/persitence/QueryBuilder.kt | 7 ------- .../android/api/persitence/QueryDataObserver.java | 5 ----- 4 files changed, 38 deletions(-) delete mode 100644 matrix-sdk-android/src/main/java/im/vector/matrix/android/api/persitence/Persister.kt delete mode 100644 matrix-sdk-android/src/main/java/im/vector/matrix/android/api/persitence/Query.kt delete mode 100644 matrix-sdk-android/src/main/java/im/vector/matrix/android/api/persitence/QueryBuilder.kt delete mode 100644 matrix-sdk-android/src/main/java/im/vector/matrix/android/api/persitence/QueryDataObserver.java diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/persitence/Persister.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/persitence/Persister.kt deleted file mode 100644 index 87dc2a60..00000000 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/persitence/Persister.kt +++ /dev/null @@ -1,15 +0,0 @@ -package im.vector.matrix.android.api.persitence - -import android.arch.paging.PagedList - -interface Persister { - - fun put(data: DATA) - - fun remove(data: DATA) - - fun get(id: KEY): DATA? - - fun getAll(): PagedList - -} \ No newline at end of file diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/persitence/Query.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/persitence/Query.kt deleted file mode 100644 index 5275c185..00000000 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/persitence/Query.kt +++ /dev/null @@ -1,11 +0,0 @@ -package im.vector.matrix.android.api.persitence - -import im.vector.matrix.android.api.util.Cancelable - -interface Query { - - fun find(): DATA - - fun subscribe(observer: QueryDataObserver): Cancelable - -} \ No newline at end of file diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/persitence/QueryBuilder.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/persitence/QueryBuilder.kt deleted file mode 100644 index c2663978..00000000 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/persitence/QueryBuilder.kt +++ /dev/null @@ -1,7 +0,0 @@ -package im.vector.matrix.android.api.persitence - -interface QueryBuilder> { - - fun build(): QUERY - -} \ No newline at end of file diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/persitence/QueryDataObserver.java b/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/persitence/QueryDataObserver.java deleted file mode 100644 index fda584e0..00000000 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/persitence/QueryDataObserver.java +++ /dev/null @@ -1,5 +0,0 @@ -package im.vector.matrix.android.api.persitence; - -public interface QueryDataObserver { - void onData(DATA data); -} \ No newline at end of file