diff options
| author | Emmanuel Pescosta <[email protected]> | 2014-01-16 12:55:42 +0100 |
|---|---|---|
| committer | Emmanuel Pescosta <[email protected]> | 2014-01-16 12:55:42 +0100 |
| commit | 419c7578f0ffec27737deafd2abd9d1356095216 (patch) | |
| tree | 8cbf423f291dfe9d510e82d4c89b330faf4c0b57 /src/views/versioncontrol/updateitemstatesthread.cpp | |
| parent | 8a46dd8d8e2374fda5a27d2079ef30722ee08000 (diff) | |
Remove the "retrieved items" code from UpdateItemStatesThread and VersionControlObserver.
Showing an error message, makes no sense in this case - the user can see it when all items are "unversioned".
The plugins still have the ability to show error/warning messages on real errors. (and only where it makes sense ;)
REVIEW: 114992
FIXED-IN: 4.13
Diffstat (limited to 'src/views/versioncontrol/updateitemstatesthread.cpp')
| -rw-r--r-- | src/views/versioncontrol/updateitemstatesthread.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/views/versioncontrol/updateitemstatesthread.cpp b/src/views/versioncontrol/updateitemstatesthread.cpp index db50aa2e8..6bc389098 100644 --- a/src/views/versioncontrol/updateitemstatesthread.cpp +++ b/src/views/versioncontrol/updateitemstatesthread.cpp @@ -28,7 +28,6 @@ UpdateItemStatesThread::UpdateItemStatesThread(KVersionControlPlugin* plugin, QThread(), m_globalPluginMutex(0), m_plugin(plugin), - m_retrievedItems(false), m_itemStates(itemStates) { // Several threads may share one instance of a plugin. A global @@ -47,8 +46,6 @@ void UpdateItemStatesThread::run() Q_ASSERT(!m_itemStates.isEmpty()); Q_ASSERT(m_plugin); - m_retrievedItems = false; - QMutexLocker pluginLocker(m_globalPluginMutex); QMap<QString, QVector<VersionControlObserver::ItemState> >::iterator it = m_itemStates.begin(); for (; it != m_itemStates.end(); ++it) { @@ -69,7 +66,6 @@ void UpdateItemStatesThread::run() } m_plugin->endRetrieval(); - m_retrievedItems = true; } } } @@ -89,9 +85,4 @@ QMap<QString, QVector<VersionControlObserver::ItemState> > UpdateItemStatesThrea return m_itemStates; } -bool UpdateItemStatesThread::retrievedItems() const -{ - return m_retrievedItems; -} - #include "updateitemstatesthread.moc" |
