diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-10-30 22:40:35 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-10-30 22:40:35 -0700 |
commit | a529fc9d83295fdf9418436b68d056162ba8231b (patch) | |
tree | 97cf66daca3b5e7efb927c7e37fc7515ec8b0ceb /parse_tree.h | |
parent | 173a6a71c03847158a434c3fd63e5759bf933239 (diff) |
Set of fixes for issues identified by cppcheck
Diffstat (limited to 'parse_tree.h')
-rw-r--r-- | parse_tree.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/parse_tree.h b/parse_tree.h index 58484ce4..8a86e70b 100644 --- a/parse_tree.h +++ b/parse_tree.h @@ -148,9 +148,6 @@ public: /* Get the node corresponding to the parent of the given node, or NULL if there is no such child. If expected_type is provided, only returns the parent if it is of that type. Note the asymmetry: get_child asserts since the children are known, but get_parent does not, since the parent may not be known. */ const parse_node_t *get_parent(const parse_node_t &node, parse_token_type_t expected_type = token_type_invalid) const; - /* Returns the first ancestor of the given type, or NULL. */ - const parse_node_t *get_first_ancestor_of_type(const parse_node_t &node, parse_token_type_t desired_type) const; - /* Find all the nodes of a given type underneath a given node, up to max_count of them */ typedef std::vector<const parse_node_t *> parse_node_list_t; parse_node_list_t find_nodes(const parse_node_t &parent, parse_token_type_t type, size_t max_count = (size_t)(-1)) const; |