mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 09:50:12 +00:00
Remove some unused functions.
void KFileItemModel::slotClear(const KUrl& url) bool UpdateItemsThread::lockPlugin() <- Done with QMutexLocker void UpdateItemsThread::unlockPlugin() REVIEW: 115627
This commit is contained in:
parent
502016c1a7
commit
c2887688f1
|
@ -75,7 +75,6 @@ KFileItemModel::KFileItemModel(QObject* parent) :
|
||||||
connect(m_dirLister, SIGNAL(itemsDeleted(KFileItemList)), this, SLOT(slotItemsDeleted(KFileItemList)));
|
connect(m_dirLister, SIGNAL(itemsDeleted(KFileItemList)), this, SLOT(slotItemsDeleted(KFileItemList)));
|
||||||
connect(m_dirLister, SIGNAL(refreshItems(QList<QPair<KFileItem,KFileItem> >)), this, SLOT(slotRefreshItems(QList<QPair<KFileItem,KFileItem> >)));
|
connect(m_dirLister, SIGNAL(refreshItems(QList<QPair<KFileItem,KFileItem> >)), this, SLOT(slotRefreshItems(QList<QPair<KFileItem,KFileItem> >)));
|
||||||
connect(m_dirLister, SIGNAL(clear()), this, SLOT(slotClear()));
|
connect(m_dirLister, SIGNAL(clear()), this, SLOT(slotClear()));
|
||||||
connect(m_dirLister, SIGNAL(clear(KUrl)), this, SLOT(slotClear(KUrl)));
|
|
||||||
connect(m_dirLister, SIGNAL(infoMessage(QString)), this, SIGNAL(infoMessage(QString)));
|
connect(m_dirLister, SIGNAL(infoMessage(QString)), this, SIGNAL(infoMessage(QString)));
|
||||||
connect(m_dirLister, SIGNAL(errorMessage(QString)), this, SIGNAL(errorMessage(QString)));
|
connect(m_dirLister, SIGNAL(errorMessage(QString)), this, SIGNAL(errorMessage(QString)));
|
||||||
connect(m_dirLister, SIGNAL(redirection(KUrl,KUrl)), this, SIGNAL(directoryRedirection(KUrl,KUrl)));
|
connect(m_dirLister, SIGNAL(redirection(KUrl,KUrl)), this, SIGNAL(directoryRedirection(KUrl,KUrl)));
|
||||||
|
@ -1054,11 +1053,6 @@ void KFileItemModel::slotClear()
|
||||||
m_expandedDirs.clear();
|
m_expandedDirs.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void KFileItemModel::slotClear(const KUrl& url)
|
|
||||||
{
|
|
||||||
Q_UNUSED(url);
|
|
||||||
}
|
|
||||||
|
|
||||||
void KFileItemModel::slotNaturalSortingChanged()
|
void KFileItemModel::slotNaturalSortingChanged()
|
||||||
{
|
{
|
||||||
m_naturalSorting = KGlobalSettings::naturalSorting();
|
m_naturalSorting = KGlobalSettings::naturalSorting();
|
||||||
|
|
|
@ -277,7 +277,6 @@ private slots:
|
||||||
void slotItemsDeleted(const KFileItemList& items);
|
void slotItemsDeleted(const KFileItemList& items);
|
||||||
void slotRefreshItems(const QList<QPair<KFileItem, KFileItem> >& items);
|
void slotRefreshItems(const QList<QPair<KFileItem, KFileItem> >& items);
|
||||||
void slotClear();
|
void slotClear();
|
||||||
void slotClear(const KUrl& url);
|
|
||||||
void slotNaturalSortingChanged();
|
void slotNaturalSortingChanged();
|
||||||
|
|
||||||
void dispatchPendingItemsToInsert();
|
void dispatchPendingItemsToInsert();
|
||||||
|
|
|
@ -70,16 +70,6 @@ void UpdateItemStatesThread::run()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool UpdateItemStatesThread::lockPlugin()
|
|
||||||
{
|
|
||||||
return m_globalPluginMutex->tryLock(300);
|
|
||||||
}
|
|
||||||
|
|
||||||
void UpdateItemStatesThread::unlockPlugin()
|
|
||||||
{
|
|
||||||
m_globalPluginMutex->unlock();
|
|
||||||
}
|
|
||||||
|
|
||||||
QMap<QString, QVector<VersionControlObserver::ItemState> > UpdateItemStatesThread::itemStates() const
|
QMap<QString, QVector<VersionControlObserver::ItemState> > UpdateItemStatesThread::itemStates() const
|
||||||
{
|
{
|
||||||
return m_itemStates;
|
return m_itemStates;
|
||||||
|
|
|
@ -50,19 +50,6 @@ public:
|
||||||
const QMap<QString, QVector<VersionControlObserver::ItemState> >& itemStates);
|
const QMap<QString, QVector<VersionControlObserver::ItemState> >& itemStates);
|
||||||
virtual ~UpdateItemStatesThread();
|
virtual ~UpdateItemStatesThread();
|
||||||
|
|
||||||
/**
|
|
||||||
* Whenever the plugin is accessed by the thread creator, lockPlugin() must
|
|
||||||
* be invoked. True is returned, if the plugin could be locked within 300
|
|
||||||
* milliseconds.
|
|
||||||
*/
|
|
||||||
bool lockPlugin();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Must be invoked if lockPlugin() returned true and plugin has been accessed
|
|
||||||
* by the thread creator.
|
|
||||||
*/
|
|
||||||
void unlockPlugin();
|
|
||||||
|
|
||||||
QMap<QString, QVector<VersionControlObserver::ItemState> > itemStates() const;
|
QMap<QString, QVector<VersionControlObserver::ItemState> > itemStates() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
Loading…
Reference in a new issue