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:
Emmanuel Pescosta 2014-02-11 20:30:50 +01:00
parent cba1533b74
commit 0e045b72c2
4 changed files with 0 additions and 30 deletions

View file

@ -75,7 +75,6 @@ KFileItemModel::KFileItemModel(QObject* parent) :
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(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(errorMessage(QString)), this, SIGNAL(errorMessage(QString)));
connect(m_dirLister, SIGNAL(redirection(KUrl,KUrl)), this, SIGNAL(directoryRedirection(KUrl,KUrl)));
@ -1054,11 +1053,6 @@ void KFileItemModel::slotClear()
m_expandedDirs.clear();
}
void KFileItemModel::slotClear(const KUrl& url)
{
Q_UNUSED(url);
}
void KFileItemModel::slotNaturalSortingChanged()
{
m_naturalSorting = KGlobalSettings::naturalSorting();

View file

@ -277,7 +277,6 @@ private slots:
void slotItemsDeleted(const KFileItemList& items);
void slotRefreshItems(const QList<QPair<KFileItem, KFileItem> >& items);
void slotClear();
void slotClear(const KUrl& url);
void slotNaturalSortingChanged();
void dispatchPendingItemsToInsert();

View file

@ -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
{
return m_itemStates;

View file

@ -50,19 +50,6 @@ public:
const QMap<QString, QVector<VersionControlObserver::ItemState> >& itemStates);
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;
protected: