aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2018-07-18 10:56:12 +0200
committerUlf Hermann <ulf.hermann@qt.io>2018-07-18 13:36:57 +0000
commit98f848ef834d1be33929b39ca1a85ef42b8c9a78 (patch)
treea97c79331a1af77d25e1f8a039bc4a1bec0617ba /src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.h
parentd241dfdde503daa306914cf0410ff312e2473b3d (diff)
V4 debugger: Drop redundantRefs option
No client is using this anymore and we can eliminate a lot of code this way. Change-Id: I454581928fe88e59cd28738c4f7fddd060999181 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.h')
-rw-r--r--src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.h b/src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.h
index 5494e10e9a..4851e2fa29 100644
--- a/src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.h
+++ b/src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.h
@@ -67,24 +67,20 @@ public:
QV4DataCollector(QV4::ExecutionEngine *engine);
- Ref collect(const QV4::ScopedValue &value); // only for redundantRefs
+ Ref addValueRef(const QV4::ScopedValue &value);
Ref addFunctionRef(const QString &functionName); // only for namesAsObjects
Ref addScriptRef(const QString &scriptName); // only for namesAsObjects
void setNamesAsObjects(bool namesAsObjects) { m_namesAsObjects = namesAsObjects; }
bool namesAsObjects() const { return m_namesAsObjects; }
- void setRedundantRefs(bool redundantRefs) { m_redundantRefs = redundantRefs; }
- bool redundantRefs() const { return m_redundantRefs; }
-
bool isValidRef(Ref ref) const;
- QJsonObject lookupRef(Ref ref, bool deep);
+ QJsonObject lookupRef(Ref ref);
bool collectScope(QJsonObject *dict, int frameNr, int scopeNr);
QJsonObject buildFrame(const QV4::StackFrame &stackFrame, int frameNr);
QV4::ExecutionEngine *engine() const { return m_engine; }
- QJsonArray flushCollectedRefs(); // only for redundantRefs
void clear();
private:
@@ -97,12 +93,10 @@ private:
void collectArgumentsInContext();
QV4::ExecutionEngine *m_engine;
- Refs m_collectedRefs; // only for redundantRefs
QV4::PersistentValue m_values;
typedef QHash<Ref, QJsonObject> SpecialRefs; // only for namesAsObjects
SpecialRefs m_specialRefs; // only for namesAsObjects
bool m_namesAsObjects;
- bool m_redundantRefs;
};
QT_END_NAMESPACE