From f7c520bc65c2c8c102f22c1a4d1e7eb5c7d8ad38 Mon Sep 17 00:00:00 2001 From: Nathan Mascitelli Date: Wed, 12 Feb 2020 08:24:05 -0500 Subject: Remove unused constant --- .../de/danoeh/antennapod/core/service/download/DownloadStatus.java | 3 +-- core/src/main/java/de/danoeh/antennapod/core/storage/PodDBAdapter.java | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'core/src/main/java/de/danoeh') diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadStatus.java b/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadStatus.java index 6b21dd58c..bdf98b7a3 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadStatus.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadStatus.java @@ -94,7 +94,6 @@ public class DownloadStatus { int indexReason = cursor.getColumnIndex(PodDBAdapter.KEY_REASON); int indexCompletionDate = cursor.getColumnIndex(PodDBAdapter.KEY_COMPLETION_DATE); int indexReasonDetailed = cursor.getColumnIndex(PodDBAdapter.KEY_REASON_DETAILED); - int indexInitiatedByUser = cursor.getColumnIndex(PodDBAdapter.KEY_INITIATED_BY_USER); return new DownloadStatus(cursor.getLong(indexId), cursor.getString(indexTitle), @@ -106,7 +105,7 @@ public class DownloadStatus { DownloadError.fromCode(cursor.getInt(indexReason)), new Date(cursor.getLong(indexCompletionDate)), cursor.getString(indexReasonDetailed), - cursor.getInt(indexInitiatedByUser) > 0); + false); } private DownloadStatus(long id, diff --git a/core/src/main/java/de/danoeh/antennapod/core/storage/PodDBAdapter.java b/core/src/main/java/de/danoeh/antennapod/core/storage/PodDBAdapter.java index a1ce183cc..af6a8ef81 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/storage/PodDBAdapter.java +++ b/core/src/main/java/de/danoeh/antennapod/core/storage/PodDBAdapter.java @@ -110,7 +110,6 @@ public class PodDBAdapter { public static final String KEY_INCLUDE_FILTER = "include_filter"; public static final String KEY_EXCLUDE_FILTER = "exclude_filter"; public static final String KEY_FEED_PLAYBACK_SPEED = "feed_playback_speed"; - public static final String KEY_INITIATED_BY_USER = "initiated_by_user"; // Table names static final String TABLE_NAME_FEEDS = "Feeds"; -- cgit v1.2.3