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

Media: Remove unused Filetype enum & associated methods

parent d207eb60
......@@ -86,21 +86,6 @@ Media::mrl() const
return QString::fromStdString( m_mlFile->mrl() );
}
Media::FileType
Media::fileType() const
{
switch ( m_mlMedia->type() )
{
case medialibrary::IMedia::Type::VideoType:
return Video;
case medialibrary::IMedia::Type::AudioType:
return Audio;
//FIXME: Unhandled Image type
default:
vlmcCritical() << "Unknown file type";
}
}
QString
Media::title() const
{
......
......@@ -64,16 +64,6 @@ class Media : public QObject, public QEnableSharedFromThis<Media>
Q_OBJECT
public:
/**
* \enum fType
* \brief enum to determine file type
*/
enum FileType
{
Audio,
Video,
Image
};
static const QString VideoExtensions;
static const QString AudioExtensions;
static const QString ImageExtensions;
......@@ -82,7 +72,6 @@ public:
Media( medialibrary::MediaPtr media, const QUuid& uuid = QUuid() );
QString mrl() const;
FileType fileType() const;
QString title() const;
qint64 id() const;
......
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