From 447844aa25754db7e868469de4537af4331709ac Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Sat, 10 Jan 2015 22:04:54 +0100 Subject: Get rid of Value::engine() This method is not guaranteed to return an engine. We're safer checking for the value being an object first and then getting the engine from there. Change-Id: I5c95e675337e545f2421613bd31c42d1e58d6f9a Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4value_inl_p.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/qml/jsruntime/qv4value_inl_p.h') diff --git a/src/qml/jsruntime/qv4value_inl_p.h b/src/qml/jsruntime/qv4value_inl_p.h index ea69c265fd..a551ac7e6b 100644 --- a/src/qml/jsruntime/qv4value_inl_p.h +++ b/src/qml/jsruntime/qv4value_inl_p.h @@ -70,12 +70,6 @@ inline String *Value::asString() const return 0; } -inline ExecutionEngine *Value::engine() const -{ - Managed *m = asManaged(); - return m ? m->engine() : 0; -} - inline void Value::mark(ExecutionEngine *e) const { if (!val) -- cgit v1.2.3