Removed unused methods

This commit is contained in:
Jonas Kalderstam 2019-09-13 23:30:20 +02:00
parent d0f19a2b14
commit 19896f0ec2
2 changed files with 0 additions and 25 deletions

View File

@ -760,20 +760,6 @@ public class DBWriter {
});
}
/**
* Saves the 'lastPlaybackSpeed' attribute of a FeedMedia object
*
* @param media The FeedMedia object.
*/
public static Future<?> setFeedMediaLastPlaybackSpeed(final FeedMedia media) {
return dbExec.submit(() -> {
PodDBAdapter adapter = PodDBAdapter.getInstance();
adapter.open();
adapter.setFeedMediaLastPlaybackSpeed(media);
adapter.close();
});
}
/**
* Saves a FeedItem object in the database. This method will save all attributes of the FeedItem object including
* the content of FeedComponent-attributes.

View File

@ -475,17 +475,6 @@ public class PodDBAdapter {
}
}
public void setFeedMediaLastPlaybackSpeed(FeedMedia media) {
if (media.getId() != 0) {
ContentValues values = new ContentValues();
values.put(KEY_MEDIA_LAST_PLAYBACK_SPEED, media.getLastPlaybackSpeed());
db.update(TABLE_NAME_FEED_MEDIA, values, KEY_ID + "=?",
new String[]{String.valueOf(media.getId())});
} else {
Log.e(TAG, "setFeedMediaLastPlaybackSpeed: ID of media was 0");
}
}
public void setFeedMediaPlaybackCompletionDate(FeedMedia media) {
if (media.getId() != 0) {
ContentValues values = new ContentValues();