diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-08-09 17:35:18 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-08-09 17:35:18 +0300 |
commit | 987dc1251204cb117410a03a20881c727d942714 (patch) | |
tree | 398457d19abaa2a2df42ac755e390e1fbf327624 /app | |
parent | 0e91a9ad984aef575f2ad1ed9f013b8bac141697 (diff) |
Remove dead code
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'app')
2 files changed, 0 insertions, 15 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/DataBaseAdapter.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/DataBaseAdapter.java index d51374659..9e240909d 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/DataBaseAdapter.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/DataBaseAdapter.java @@ -659,11 +659,6 @@ public class DataBaseAdapter { return db.getUserDao().searchUserByUidOrDisplayName(accountId, boardId, notYetAssignedToLocalCardId, "%" + searchTerm.trim() + "%"); } -// public LiveData<List<User>> searchUserByUidOrDisplayNameForACL(final long accountId, final long notYetAssignedToACL, final String searchTerm) { -// validateSearchTerm(searchTerm); -// return db.getUserDao().searchUserByUidOrDisplayNameForACL(accountId, notYetAssignedToACL, "%" + searchTerm.trim() + "%"); -// } - public List<User> searchUserByUidOrDisplayNameForACLDirectly(final long accountId, final long notYetAssignedToACL, final String searchTerm) { validateSearchTerm(searchTerm); return db.getUserDao().searchUserByUidOrDisplayNameForACLDirectly(accountId, notYetAssignedToACL, "%" + searchTerm.trim() + "%"); diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/dao/UserDao.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/dao/UserDao.java index e5e506728..6e42cdaae 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/dao/UserDao.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/dao/UserDao.java @@ -44,16 +44,6 @@ public interface UserDao extends GenericDao<User> { "and ( uid LIKE :searchTerm or displayname LIKE :searchTerm or primaryKey LIKE :searchTerm )") LiveData<List<User>> searchUserByUidOrDisplayName(final long accountId, final long boardId, final long notYetAssignedToLocalCardId, final String searchTerm); -// @Query("SELECT u.* FROM user u WHERE accountId = :accountId " + -// " AND NOT EXISTS (" + -// " select 1 from accesscontrol ju" + -// " where ju.userId = u.localId and ju.boardId = :boardId and status <> 3" + // not LOCAL_DELETED -// " ) " + -// "and ( uid LIKE :searchTerm or displayname LIKE :searchTerm or primaryKey LIKE :searchTerm ) " + -// "and u.localId <> (select b.ownerId from board b where localId = :boardId)" + -// "ORDER BY u.displayname") -// LiveData<List<User>> searchUserByUidOrDisplayNameForACL(final long accountId, final long boardId, final String searchTerm); - @Query("SELECT u.* FROM user u WHERE accountId = :accountId " + " AND NOT EXISTS (" + " select 1 from accesscontrol ju" + |