Commit bd9c2bc3 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

IShowEpisode: Remove media() getter

parent 136a2ac7
......@@ -39,7 +39,6 @@ class IShowEpisode
virtual const std::string& shortSummary() const = 0;
virtual const std::string& tvdbId() const = 0;
virtual std::shared_ptr<IShow> show() = 0;
virtual Query<IMedia> media() = 0;
};
}
......
......@@ -124,13 +124,6 @@ std::shared_ptr<IShow> ShowEpisode::show()
return m_show;
}
Query<IMedia> ShowEpisode::media()
{
static const std::string req = "FROM " + policy::MediaTable::Name
+ " WHERE show_episode_id = ?";
return make_query<Media, IMedia>( m_ml, "*", req, m_id );
}
void ShowEpisode::createTable( sqlite::Connection* dbConnection )
{
const std::string req = "CREATE TABLE IF NOT EXISTS " + policy::ShowEpisodeTable::Name
......
......@@ -61,7 +61,6 @@ class ShowEpisode : public IShowEpisode, public DatabaseHelpers<ShowEpisode, pol
virtual const std::string& tvdbId() const override;
bool setTvdbId( const std::string& tvdbId );
virtual ShowPtr show() override;
virtual Query<IMedia> media() override;
static void createTable( sqlite::Connection* dbConnection );
static std::shared_ptr<ShowEpisode> create( MediaLibraryPtr ml, int64_t mediaId, unsigned int episodeNumber, int64_t showId );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment