aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4engine.cpp')
-rw-r--r--src/qml/jsruntime/qv4engine.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/qml/jsruntime/qv4engine.cpp b/src/qml/jsruntime/qv4engine.cpp
index 23faa43ac7..d312db272c 100644
--- a/src/qml/jsruntime/qv4engine.cpp
+++ b/src/qml/jsruntime/qv4engine.cpp
@@ -826,19 +826,9 @@ void ExecutionEngine::throwException(const ValueRef value)
throwInternal();
}
-void ExecutionEngine::rethrowException(ExecutionContext *intermediateCatchingContext)
-{
- if (hasException) {
- while (current != intermediateCatchingContext)
- popContext();
- }
- rethrowInternal();
-}
-
ReturnedValue ExecutionEngine::catchException(ExecutionContext *catchingContext, StackTrace *trace)
{
- if (!hasException)
- rethrowInternal();
+ Q_ASSERT(hasException);
while (current != catchingContext)
popContext();
if (trace)
@@ -858,11 +848,6 @@ void ExecutionEngine::throwInternal()
{
throw DummyException();
}
-
-void ExecutionEngine::rethrowInternal()
-{
- throw;
-}
#endif
QT_END_NAMESPACE