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

IMovie: Remove media() getter

parent bd9c2bc3
......@@ -35,7 +35,6 @@ class IMovie
virtual int64_t id() const = 0;
virtual const std::string& shortSummary() const = 0;
virtual const std::string& imdbId() const = 0;
virtual Query<IMedia> media() = 0;
};
}
......
......@@ -87,13 +87,6 @@ bool Movie::setImdbId( const std::string& imdbId )
return true;
}
Query<IMedia> Movie::media()
{
static const std::string req = "FROM " + policy::MediaTable::Name
+ " WHERE movie_id = ?";
return make_query<Media, IMedia>( m_ml, "*", req, m_id );
}
void Movie::createTable( sqlite::Connection* dbConnection )
{
const std::string req = "CREATE TABLE IF NOT EXISTS " + policy::MovieTable::Name
......
......@@ -53,7 +53,6 @@ class Movie : public IMovie, public DatabaseHelpers<Movie, policy::MovieTable>
bool setShortSummary(const std::string& summary);
virtual const std::string& imdbId() const override;
bool setImdbId(const std::string& imdbId);
virtual Query<IMedia> media() override;
static void createTable( sqlite::Connection* dbConnection );
static std::shared_ptr<Movie> create( MediaLibraryPtr ml, int64_t mediaId );
......
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