OSDN Git Service

QmlJsDebug: Remove unused code
authorKai Koehne <kai.koehne@nokia.com>
Mon, 21 Mar 2011 12:14:26 +0000 (13:14 +0100)
committerKai Koehne <kai.koehne@nokia.com>
Mon, 21 Mar 2011 14:07:34 +0000 (15:07 +0100)
src/plugins/qmljsinspector/qmljsclientproxy.cpp
src/plugins/qmljsinspector/qmljsclientproxy.h

index a33f31b..64beaf7 100644 (file)
@@ -114,28 +114,6 @@ void ClientProxy::clientStatusChanged(QDeclarativeDebugClient::Status status)
     updateConnected();
 }
 
-void ClientProxy::disconnectFromServer()
-{
-    delete m_engineClient;
-    m_engineClient = 0;
-
-    delete m_observerClient;
-    m_observerClient = 0;
-
-    delete m_engineQuery;
-    m_engineQuery = 0;
-
-    delete m_contextQuery;
-    m_contextQuery = 0;
-
-    qDeleteAll(m_objectTreeQuery);
-    m_objectTreeQuery.clear();
-
-    removeAllObjectWatches();
-
-    updateConnected();
-}
-
 void ClientProxy::refreshObjectTree()
 {
     if (!m_contextQuery) {
index 535ebe5..9599864 100644 (file)
@@ -133,7 +133,6 @@ public slots:
     void setContextPathIndex(int contextIndex);
 
 private slots:
-    void disconnectFromServer();
     void connectToServer();
     void clientStatusChanged(QDeclarativeDebugClient::Status status);