forked from qt-creator/qt-creator
qmljs: Remove dead code
Change-Id: I2b9cdf9960a28c952905e11332f029e1503850ce Reviewed-by: Marco Benelli <marco.benelli@qt.io>
This commit is contained in:
@@ -196,10 +196,6 @@ void TypeDescriptionReader::readDependencies(UiScriptBinding *ast)
|
|||||||
}
|
}
|
||||||
for (ElementList *l = exp->elements; l; l = l->next) {
|
for (ElementList *l = exp->elements; l; l = l->next) {
|
||||||
StringLiteral *str = AST::cast<StringLiteral *>(l->expression);
|
StringLiteral *str = AST::cast<StringLiteral *>(l->expression);
|
||||||
if (!exp) {
|
|
||||||
addWarning(l->expression->firstSourceLocation(),
|
|
||||||
tr("Cannot read dependency: skipping."));
|
|
||||||
}
|
|
||||||
*_dependencies << str->value.toString();
|
*_dependencies << str->value.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user