PodcastModel: Remove dead code.

This commit is contained in:
Jordan Petridis 2018-06-30 22:20:07 +03:00
parent 5b8b265371
commit 400c0f35f0
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6

View File

@ -5,8 +5,6 @@ use errors::DataError;
use models::{Save, Source};
use schema::shows;
use std::sync::Arc;
#[derive(Queryable, Identifiable, AsChangeset, Associations, PartialEq)]
#[belongs_to(Source, foreign_key = "source_id")]
#[changeset_options(treat_none_as_null = "true")]
@ -105,16 +103,6 @@ impl From<Podcast> for PodcastCoverQuery {
}
}
impl From<Arc<Podcast>> for PodcastCoverQuery {
fn from(p: Arc<Podcast>) -> PodcastCoverQuery {
PodcastCoverQuery {
id: p.id(),
title: p.title.clone(),
image_uri: p.image_uri.clone(),
}
}
}
impl PodcastCoverQuery {
/// Get the Feed `id`.
pub fn id(&self) -> i32 {