Removed unused methods
This commit is contained in:
parent
d0f19a2b14
commit
19896f0ec2
|
@ -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.
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue