[vlmc-devel] Media: Remove unused Filetype enum & associated methods
Hugo Beauzée-Luyssen
git at videolan.org
Mon Aug 29 19:06:34 CEST 2016
vlmc | branch: medialibrary | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Aug 29 16:17:01 2016 +0200| [5f5b6125b06de7f0c3c5eade68082f07f121fe32] | committer: Hugo Beauzée-Luyssen
Media: Remove unused Filetype enum & associated methods
> https://code.videolan.org/videolan/vlmc/commit/5f5b6125b06de7f0c3c5eade68082f07f121fe32
---
src/Media/Media.cpp | 15 ---------------
src/Media/Media.h | 11 -----------
2 files changed, 26 deletions(-)
diff --git a/src/Media/Media.cpp b/src/Media/Media.cpp
index dcac9ae..2f43dab 100644
--- a/src/Media/Media.cpp
+++ b/src/Media/Media.cpp
@@ -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
{
diff --git a/src/Media/Media.h b/src/Media/Media.h
index 80b5ab9..660b52e 100644
--- a/src/Media/Media.h
+++ b/src/Media/Media.h
@@ -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;
More information about the Vlmc-devel
mailing list