From e7f37e64ef16892c0b279be955fab04527597909 Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Fri, 3 Dec 2010 14:29:19 +0100
Subject: [PATCH] debugger: remove unneded function

---
 src/plugins/debugger/debuggerplugin.cpp | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index c2b8e59dd28..25981cefd0d 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -1057,8 +1057,7 @@ public slots:
     const CPlusPlus::Snapshot &cppCodeModelSnapshot() const;
 
     void showQtDumperLibraryWarning(const QString &details);
-    DebuggerMainWindow *debuggerMainWindow() const;
-    QWidget *mainWindow() const { return m_mainWindow; }
+    DebuggerMainWindow *mainWindow() const { return m_mainWindow; }
 
     bool isRegisterViewVisible() const;
     bool hasSnapshots() const { return m_snapshotHandler->size(); }
@@ -2585,11 +2584,6 @@ void DebuggerPluginPrivate::showMessage(const QString &msg, int channel, int tim
     }
 }
 
-DebuggerMainWindow *DebuggerPluginPrivate::debuggerMainWindow() const
-{
-    return qobject_cast<DebuggerMainWindow*>(mainWindow());
-}
-
 void DebuggerPluginPrivate::showQtDumperLibraryWarning(const QString &details)
 {
     QMessageBox dialog(mainWindow());
-- 
GitLab