forked from qt-creator/qt-creator
debugger: remove some duplicated code
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
#include "registerhandler.h"
|
||||
#include "stackhandler.h"
|
||||
#include "watchhandler.h"
|
||||
#include "watchutils.h"
|
||||
#include "moduleshandler.h"
|
||||
|
||||
#include <utils/qtcassert.h>
|
||||
@@ -422,28 +423,6 @@ static WatchData m_toolTip;
|
||||
static QPoint m_toolTipPos;
|
||||
static QHash<QString, WatchData> m_toolTipCache;
|
||||
|
||||
static bool hasLetterOrNumber(const QString &exp)
|
||||
{
|
||||
for (int i = exp.size(); --i >= 0; )
|
||||
if (exp[i].isLetterOrNumber())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
static bool hasSideEffects(const QString &exp)
|
||||
{
|
||||
// FIXME: complete?
|
||||
return exp.contains("-=")
|
||||
|| exp.contains("+=")
|
||||
|| exp.contains("/=")
|
||||
|| exp.contains("*=")
|
||||
|| exp.contains("&=")
|
||||
|| exp.contains("|=")
|
||||
|| exp.contains("^=")
|
||||
|| exp.contains("--")
|
||||
|| exp.contains("++");
|
||||
}
|
||||
|
||||
void ScriptEngine::setToolTipExpression(const QPoint &pos, const QString &exp0)
|
||||
{
|
||||
Q_UNUSED(pos);
|
||||
|
||||
Reference in New Issue
Block a user