From 5a1f1d5e55b6983b52082cf97a7a50741d542da1 Mon Sep 17 00:00:00 2001
From: Marco Bubke <marco.bubke@nokia.com>
Date: Tue, 19 Jan 2010 13:55:33 +0100
Subject: [PATCH] Remove unused code in the selection tool of the formeditor

---
 .../components/formeditor/selectiontool.cpp   | 30 -------------------
 .../components/formeditor/selectiontool.h     |  4 ---
 2 files changed, 34 deletions(-)

diff --git a/src/plugins/qmldesigner/components/formeditor/selectiontool.cpp b/src/plugins/qmldesigner/components/formeditor/selectiontool.cpp
index ab91ca57b66..3588f9e4b26 100644
--- a/src/plugins/qmldesigner/components/formeditor/selectiontool.cpp
+++ b/src/plugins/qmldesigner/components/formeditor/selectiontool.cpp
@@ -188,21 +188,6 @@ void SelectionTool::keyPressEvent(QKeyEvent *event)
             view()->changeToMoveTool();
             view()->currentTool()->keyPressEvent(event);
             break;
-        case Qt::Key_C:
-            if (event->modifiers().testFlag(Qt::ControlModifier)) {
-                copySelectedNodeToClipBoard();
-                break;
-            }
-        case Qt::Key_V:
-            if (event->modifiers().testFlag(Qt::ControlModifier)) {
-                pasteClipBoard();
-                break;
-            }
-        case Qt::Key_X:
-            if (event->modifiers().testFlag(Qt::ControlModifier)) {
-                cutSelectedNodeToClipBoard();
-                break;
-            }
     }
 }
 
@@ -211,21 +196,6 @@ void SelectionTool::keyReleaseEvent(QKeyEvent * /*keyEvent*/)
 
 }
 
-void SelectionTool::copySelectedNodeToClipBoard()
-{
-    // QClipboard *clipboard = QApplication::clipboard();
-}
-
-void SelectionTool::cutSelectedNodeToClipBoard()
-{
-    // QClipboard *clipboard = QApplication::clipboard();
-}
-
-void SelectionTool::pasteClipBoard()
-{
-    // QClipboard *clipboard = QApplication::clipboard();
-}
-
 void SelectionTool::setSelectOnlyContentItems(bool selectOnlyContentItems)
 {
     m_selectOnlyContentItems = selectOnlyContentItems;
diff --git a/src/plugins/qmldesigner/components/formeditor/selectiontool.h b/src/plugins/qmldesigner/components/formeditor/selectiontool.h
index 6af700daec9..cd0a9051afd 100644
--- a/src/plugins/qmldesigner/components/formeditor/selectiontool.h
+++ b/src/plugins/qmldesigner/components/formeditor/selectiontool.h
@@ -78,10 +78,6 @@ public:
 
     void selectUnderPoint(QGraphicsSceneMouseEvent *event);
 
-    void copySelectedNodeToClipBoard();
-    void cutSelectedNodeToClipBoard();
-    void pasteClipBoard();
-
     void setSelectOnlyContentItems(bool selectOnlyContentItems);
 
 private:
-- 
GitLab