From 4d9ffeff745a4a8bd31df7af85058d38383c5286 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Fri, 14 Jun 2019 13:58:36 +0200 Subject: Inline CompiledData::unlink() into the only caller The compiler never links anything and therefore it doesn't need to unlink, either. Change-Id: I9ccdc012f9333abc5f4b60174b794e490772e1fd Reviewed-by: Simon Hausmann Reviewed-by: Fabian Kosmale --- src/qml/compiler/qv4compileddata.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/qml/compiler/qv4compileddata.cpp') diff --git a/src/qml/compiler/qv4compileddata.cpp b/src/qml/compiler/qv4compileddata.cpp index e548085873..ee53ca1586 100644 --- a/src/qml/compiler/qv4compileddata.cpp +++ b/src/qml/compiler/qv4compileddata.cpp @@ -150,16 +150,6 @@ QString Binding::escapedString(const QString &string) return tmp; } -void CompilationUnit::unlink() -{ - free(runtimeStrings); - runtimeStrings = nullptr; - delete [] runtimeRegularExpressions; - runtimeRegularExpressions = nullptr; - free(runtimeClasses); - runtimeClasses = nullptr; -} - } } -- cgit v1.2.3