[vlc-devel] [PATCH 1/8] qt: medialib: remove unused m_nb_max_items
Romain Vimont
rom1v at videolabs.io
Mon Nov 9 10:58:08 CET 2020
---
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,
--
2.29.2
More information about the vlc-devel
mailing list