Commit ceaaaf14 authored by Adam Klein's avatar Adam Klein Committed by Commit Bot

[ast] Remove dead code identified by coverage reports

Change-Id: I8283ddf96dc178f12e52d9412db1858acfe46650
Reviewed-on: https://chromium-review.googlesource.com/c/1387966Reviewed-by: 's avatarSathya Gunasekaran <gsathya@chromium.org>
Commit-Queue: Adam Klein <adamk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#58447}
parent 9bb78e32
...@@ -70,15 +70,6 @@ IterationStatement* AstNode::AsIterationStatement() { ...@@ -70,15 +70,6 @@ IterationStatement* AstNode::AsIterationStatement() {
} }
} }
BreakableStatement* AstNode::AsBreakableStatement() {
switch (node_type()) {
BREAKABLE_NODE_LIST(RETURN_NODE);
ITERATION_NODE_LIST(RETURN_NODE);
default:
return nullptr;
}
}
MaterializedLiteral* AstNode::AsMaterializedLiteral() { MaterializedLiteral* AstNode::AsMaterializedLiteral() {
switch (node_type()) { switch (node_type()) {
LITERAL_NODE_LIST(RETURN_NODE); LITERAL_NODE_LIST(RETURN_NODE);
......
...@@ -161,7 +161,6 @@ class AstNode: public ZoneObject { ...@@ -161,7 +161,6 @@ class AstNode: public ZoneObject {
FAILURE_NODE_LIST(DECLARE_NODE_FUNCTIONS) FAILURE_NODE_LIST(DECLARE_NODE_FUNCTIONS)
#undef DECLARE_NODE_FUNCTIONS #undef DECLARE_NODE_FUNCTIONS
BreakableStatement* AsBreakableStatement();
IterationStatement* AsIterationStatement(); IterationStatement* AsIterationStatement();
MaterializedLiteral* AsMaterializedLiteral(); MaterializedLiteral* AsMaterializedLiteral();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment