summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlscriptparser.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2009-07-01 15:47:55 (GMT)
committerErik Verbruggen <erik.verbruggen@nokia.com>2009-07-01 15:47:55 (GMT)
commiteeccaca2875b675d9fabfe5cf03941fa1fd93511 (patch)
treea2a4fba85ab962ddf12f468e6a4dcd81edf58969 /src/declarative/qml/qmlscriptparser.cpp
parent028a6a00c5653c6dc0641b215287e33b8312d7a7 (diff)
downloadQt-eeccaca2875b675d9fabfe5cf03941fa1fd93511.zip
Qt-eeccaca2875b675d9fabfe5cf03941fa1fd93511.tar.gz
Qt-eeccaca2875b675d9fabfe5cf03941fa1fd93511.tar.bz2
Removed superfluous methods.
Diffstat (limited to 'src/declarative/qml/qmlscriptparser.cpp')
-rw-r--r--src/declarative/qml/qmlscriptparser.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/declarative/qml/qmlscriptparser.cpp b/src/declarative/qml/qmlscriptparser.cpp
index f1f1710..b957499 100644
--- a/src/declarative/qml/qmlscriptparser.cpp
+++ b/src/declarative/qml/qmlscriptparser.cpp
@@ -178,8 +178,6 @@ protected:
virtual bool visit(AST::UiArrayBinding *node);
virtual bool visit(AST::UiSourceElement *node);
- virtual bool visit(AST::ExpressionStatement *node);
-
void accept(AST::Node *node);
QString asString(AST::UiQualifiedId *node) const;
@@ -645,14 +643,6 @@ bool ProcessAST::visit(AST::UiScriptBinding *node)
return true;
}
-bool ProcessAST::visit(AST::ExpressionStatement *node)
-{
- if (!node->semicolonToken.isValid())
- _parser->addAutomaticSemicolonOffset(node->semicolonToken.offset);
-
- return true;
-}
-
static QList<int> collectCommas(AST::UiArrayMemberList *members)
{
QList<int> commas;
@@ -856,7 +846,6 @@ void QmlScriptParser::clear()
_nameSpacePaths.clear();
_typeNames.clear();
_errors.clear();
- _automaticSemicolonOffsets.clear();
if (data) {
delete data;