vlc | branch: master | Romain Vimont <[email protected]> | Mon Nov 9 10:58:08 2020 +0100| [bc1563e356728526423869b5f8157f60bfe1f938] | committer: Alexandre Janniaux
qt: medialib: remove unused m_nb_max_items Signed-off-by: Alexandre Janniaux <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bc1563e356728526423869b5f8157f60bfe1f938 --- modules/gui/qt/medialibrary/mlbasemodel.cpp | 1 - modules/gui/qt/medialibrary/mlbasemodel.hpp | 3 --- 2 files changed, 4 deletions(-) diff --git a/modules/gui/qt/medialibrary/mlbasemodel.cpp b/modules/gui/qt/medialibrary/mlbasemodel.cpp index 6eb14530a7..c953d9f421 100644 --- a/modules/gui/qt/medialibrary/mlbasemodel.cpp +++ b/modules/gui/qt/medialibrary/mlbasemodel.cpp @@ -25,7 +25,6 @@ MLBaseModel::MLBaseModel(QObject *parent) : QAbstractListModel(parent) , m_ml(nullptr) , m_search_pattern_cstr( nullptr, &free ) - , m_nb_max_items( 0 ) , m_ml_event_handle( nullptr, [this](vlc_ml_event_callback_t* cb ) { assert( m_ml != nullptr ); vlc_ml_event_unregister_callback( m_ml, cb ); diff --git a/modules/gui/qt/medialibrary/mlbasemodel.hpp b/modules/gui/qt/medialibrary/mlbasemodel.hpp index 5795347c2b..33bce4b4fc 100644 --- a/modules/gui/qt/medialibrary/mlbasemodel.hpp +++ b/modules/gui/qt/medialibrary/mlbasemodel.hpp @@ -46,7 +46,6 @@ public: Q_PROPERTY( MLParentId parentId READ parentId WRITE setParentId NOTIFY parentIdChanged RESET unsetParentId ) Q_PROPERTY( MediaLib* ml READ ml WRITE setMl ) - Q_PROPERTY( unsigned int maxItems MEMBER m_nb_max_items ) Q_PROPERTY( QString searchPattern READ searchPattern WRITE setSearchPattern ) Q_PROPERTY( Qt::SortOrder sortOrder READ getSortOrder WRITE setSortOder NOTIFY sortOrderChanged ) @@ -114,8 +113,6 @@ protected: std::unique_ptr<char, void(*)(void*)> m_search_pattern_cstr; QString m_search_pattern; - unsigned int m_nb_max_items; - mutable vlc_mutex_t m_item_lock; std::unique_ptr<vlc_ml_event_callback_t, _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
