diff options
Diffstat (limited to 'src/qml/compiler/qv4codegen.cpp')
| -rw-r--r-- | src/qml/compiler/qv4codegen.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/qml/compiler/qv4codegen.cpp b/src/qml/compiler/qv4codegen.cpp index 7643212ea1..ea3f194852 100644 --- a/src/qml/compiler/qv4codegen.cpp +++ b/src/qml/compiler/qv4codegen.cpp @@ -2731,11 +2731,6 @@ QList<QQmlJS::DiagnosticMessage> Codegen::errors() const QQmlRefPointer<CompiledData::CompilationUnit> Codegen::generateCompilationUnit(bool generateUnitData) { Moth::CompilationUnit *compilationUnit = new Moth::CompilationUnit; - compilationUnit->codeRefs.resize(_module->functions.size()); - int i = 0; - for (Context *irFunction : qAsConst(_module->functions)) - compilationUnit->codeRefs[i++] = irFunction->code; - if (generateUnitData) compilationUnit->data = jsUnitGenerator->generateUnit(); |
