Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Unified Diff: runtime/vm/ast.h

Issue 17873002: Remove an unused field in the AST. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast.h
diff --git a/runtime/vm/ast.h b/runtime/vm/ast.h
index c679d2af4e996abd2270e7fc81da1702111c209d..0f2b66eb9b10fbe40a59eaf22f80f54a918c8bd2 100644
--- a/runtime/vm/ast.h
+++ b/runtime/vm/ast.h
@@ -1583,7 +1583,6 @@ class CatchClauseNode : public AstNode {
const LocalVariable* exception_var,
const LocalVariable* stacktrace_var)
: AstNode(token_pos),
- try_index_(kInvalidTryIndex),
catch_block_(catch_block),
handler_types_(handler_types),
context_var_(*context_var),
@@ -1596,12 +1595,6 @@ class CatchClauseNode : public AstNode {
ASSERT(stacktrace_var != NULL);
}
- int try_index() const {
- ASSERT(try_index_ >= 0);
- return try_index_;
- }
- void set_try_index(int value) { try_index_ = value; }
-
const Array& handler_types() const { return handler_types_; }
const LocalVariable& context_var() const { return context_var_; }
const LocalVariable& exception_var() const { return exception_var_; }
@@ -1614,7 +1607,6 @@ class CatchClauseNode : public AstNode {
DECLARE_COMMON_NODE_FUNCTIONS(CatchClauseNode);
private:
- int try_index_; // Running index of the try blocks seen in a function.
SequenceNode* catch_block_;
const Array& handler_types_;
const LocalVariable& context_var_;
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698