From 7756812db375221fe96fab4df3d42f031d1fe27d Mon Sep 17 00:00:00 2001 From: Pierre Lamot <pierre@videolabs.io> Date: Mon, 20 Dec 2021 15:49:17 +0100 Subject: [PATCH] qt: remove unused QThreadPool in MediaLib --- modules/gui/qt/medialibrary/medialib.cpp | 1 - modules/gui/qt/medialibrary/medialib.hpp | 3 --- 2 files changed, 4 deletions(-) diff --git a/modules/gui/qt/medialibrary/medialib.cpp b/modules/gui/qt/medialibrary/medialib.cpp index ea0d964fd01d..71b0bed9a51c 100644 --- a/modules/gui/qt/medialibrary/medialib.cpp +++ b/modules/gui/qt/medialibrary/medialib.cpp @@ -37,7 +37,6 @@ MediaLib::MediaLib(qt_intf_t *_intf, QObject *_parent) this ) ); /* https://xkcd.com/221/ */ - m_threadPool.setMaxThreadCount(4); m_mlThreadPool.setMaxThreadCount(4); } diff --git a/modules/gui/qt/medialibrary/medialib.hpp b/modules/gui/qt/medialibrary/medialib.hpp index 38d17a905364..9972f88c7d86 100644 --- a/modules/gui/qt/medialibrary/medialib.hpp +++ b/modules/gui/qt/medialibrary/medialib.hpp @@ -93,8 +93,6 @@ public: vlc_ml_event_callback_t* registerEventListener(void (*callback)(void*, const vlc_ml_event_t*), void* data); void unregisterEventListener(vlc_ml_event_callback_t*); - QThreadPool &threadPool() { return m_threadPool; } - /** * this function allows to run lambdas on the ML thread, * this should be used to perform operation that requires to call vlc_ml_xxx functions @@ -218,7 +216,6 @@ private: vlc_medialibrary_t* m_ml; std::unique_ptr<vlc_ml_event_callback_t, std::function<void(vlc_ml_event_callback_t*)>> m_event_cb; - QThreadPool m_threadPool; MLThreadPool m_mlThreadPool; /* run on ml thread properties */ -- GitLab