]> cloud.milkyroute.net Git - dolphin.git/commitdiff
remove unused method (relict from times when KFilePreviewGenerator was not available)
authorPeter Penz <peter.penz19@gmail.com>
Fri, 8 May 2009 15:53:47 +0000 (15:53 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Fri, 8 May 2009 15:53:47 +0000 (15:53 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=965332

src/dolphinview.cpp
src/dolphinview.h

index 48df3e20f7073510c74e60271b7a5fd7a6408eda..bddd4b5bf57f552c0287e952eb1c6d4fc01cd7ba 100644 (file)
@@ -1470,24 +1470,6 @@ QAbstractItemView* DolphinView::itemView() const
     return m_iconsView;
 }
 
     return m_iconsView;
 }
 
-bool DolphinView::isCutItem(const KFileItem& item) const
-{
-    const QMimeData* mimeData = QApplication::clipboard()->mimeData();
-    const KUrl::List cutUrls = KUrl::List::fromMimeData(mimeData);
-
-    const KUrl& itemUrl = item.url();
-    KUrl::List::const_iterator it = cutUrls.begin();
-    const KUrl::List::const_iterator end = cutUrls.end();
-    while (it != end) {
-        if (*it == itemUrl) {
-            return true;
-        }
-        ++it;
-    }
-
-    return false;
-}
-
 void DolphinView::pasteToUrl(const KUrl& url)
 {
     KonqOperations::doPaste(this, url);
 void DolphinView::pasteToUrl(const KUrl& url)
 {
     KonqOperations::doPaste(this, url);
index 1df268ad7da89d0b335c20b285acd20ad7f2da1b..7014aeb02f595f29b07f81cf80139c619cae6030 100644 (file)
@@ -712,12 +712,6 @@ private:
      */
     QAbstractItemView* itemView() const;
 
      */
     QAbstractItemView* itemView() const;
 
-    /**
-     * Returns true, if the item \a item has been cut into
-     * the clipboard.
-     */
-    bool isCutItem(const KFileItem& item) const;
-
     /**
      * Helper method for DolphinView::paste() and DolphinView::pasteIntoFolder().
      * Pastes the clipboard data into the URL \a url.
     /**
      * Helper method for DolphinView::paste() and DolphinView::pasteIntoFolder().
      * Pastes the clipboard data into the URL \a url.