From ed2f41bb585238c9fd9f9b7254ca7bcb5218b84c Mon Sep 17 00:00:00 2001
From: Aurindam Jana <aurindam.jana@nokia.com>
Date: Thu, 29 Dec 2011 13:15:12 +0100
Subject: [PATCH] QmlDebugging: Remove BreakpointByFunction

Remove BreakpointByFunction capability as it is not supported
by the v8debugservice.

Change-Id: I60e3d0d6f5669f83fa621cd99f25512cad3dbb96
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
---
 src/plugins/debugger/qml/qmlv8debuggerclient.cpp | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/plugins/debugger/qml/qmlv8debuggerclient.cpp b/src/plugins/debugger/qml/qmlv8debuggerclient.cpp
index 03afa154ae0..8cea34b5d2f 100644
--- a/src/plugins/debugger/qml/qmlv8debuggerclient.cpp
+++ b/src/plugins/debugger/qml/qmlv8debuggerclient.cpp
@@ -1054,7 +1054,6 @@ bool QmlV8DebuggerClient::acceptsBreakpoint(const BreakpointModelId &id)
 {
     BreakpointType type = d->engine->breakHandler()->breakpointData(id).type;
     return (type == BreakpointOnQmlSignalHandler
-            || type == BreakpointByFunction
             || type == BreakpointByFileAndLine
             || type == BreakpointAtJavaScriptThrow);
 }
@@ -1079,11 +1078,6 @@ void QmlV8DebuggerClient::insertBreakpoint(const BreakpointModelId &id)
                              QLatin1String(params.condition), params.ignoreCount);
         }
 
-    } else if (params.type == BreakpointByFunction) {
-        d->setBreakpoint(QString(_(FUNCTION)), params.functionName,
-                         -1, -1, params.enabled, QLatin1String(params.condition),
-                         params.ignoreCount);
-
     } else if (params.type == BreakpointOnQmlSignalHandler) {
         d->setBreakpoint(QString(_(EVENT)), params.functionName,
                          -1, -1, params.enabled);
-- 
GitLab