From 400c0f35f0594de831e4ccc96212eb6e8c1d5ab4 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Sat, 30 Jun 2018 22:20:07 +0300 Subject: [PATCH] PodcastModel: Remove dead code. --- hammond-data/src/models/podcast.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/hammond-data/src/models/podcast.rs b/hammond-data/src/models/podcast.rs index 24ee837..9d1fa55 100644 --- a/hammond-data/src/models/podcast.rs +++ b/hammond-data/src/models/podcast.rs @@ -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 for PodcastCoverQuery { } } -impl From> for PodcastCoverQuery { - fn from(p: Arc) -> 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 {