aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/SubredditDatabase/SubredditDao.java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/SubredditDatabase/SubredditDao.java')
-rw-r--r--app/src/main/java/SubredditDatabase/SubredditDao.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/src/main/java/SubredditDatabase/SubredditDao.java b/app/src/main/java/SubredditDatabase/SubredditDao.java
index e7b564f7..ac291f9a 100644
--- a/app/src/main/java/SubredditDatabase/SubredditDao.java
+++ b/app/src/main/java/SubredditDatabase/SubredditDao.java
@@ -14,11 +14,8 @@ public interface SubredditDao {
@Query("DELETE FROM subreddits")
void deleteAllSubreddits();
- @Query("SELECT * from subreddits WHERE id = :id")
- LiveData<SubredditData> getSubredditLiveDataById(String id);
-
@Query("SELECT * from subreddits WHERE name = :namePrefixed")
- LiveData<SubredditData> getSubredditLiveDataByNamePrefixed(String namePrefixed);
+ LiveData<SubredditData> getSubredditLiveDataByName(String namePrefixed);
@Query("SELECT * from subreddits WHERE name = :namePrefixed LIMIT 1")
SubredditData getSubredditData(String namePrefixed);