aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-ast-resolve-expr.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-06-27 12:39:41 +0100
committerPhilip Herron <philip.herron@embecosm.com>2022-06-27 12:40:18 +0100
commitb9fffb15587d4e45796e1ac1b230119f38f10662 (patch)
treedad540def87947c0f3b18e4a3f30aaeba7beeebd /gcc/rust/resolve/rust-ast-resolve-expr.h
parent198d0dfbfadbb1f4593d61a15f707b90a91253c8 (diff)
downloadgcc-b9fffb15587d4e45796e1ac1b230119f38f10662.zip
gcc-b9fffb15587d4e45796e1ac1b230119f38f10662.tar.gz
gcc-b9fffb15587d4e45796e1ac1b230119f38f10662.tar.bz2
Remove unused parent NodeId mappings
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve-expr.h')
-rw-r--r--gcc/rust/resolve/rust-ast-resolve-expr.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/gcc/rust/resolve/rust-ast-resolve-expr.h b/gcc/rust/resolve/rust-ast-resolve-expr.h
index 4f189de..11a846a 100644
--- a/gcc/rust/resolve/rust-ast-resolve-expr.h
+++ b/gcc/rust/resolve/rust-ast-resolve-expr.h
@@ -30,7 +30,7 @@ class ResolveExpr : public ResolverBase
using Rust::Resolver::ResolverBase::visit;
public:
- static void go (AST::Expr *expr, NodeId parent, const CanonicalPath &prefix,
+ static void go (AST::Expr *expr, const CanonicalPath &prefix,
const CanonicalPath &canonical_prefix);
void visit (AST::TupleIndexExpr &expr) override;
@@ -119,18 +119,9 @@ public:
void visit (AST::RangeFromToInclExpr &expr) override;
-protected:
- void resolve_expr (AST::Expr *e, NodeId parent)
- {
- ResolveExpr::go (e, parent, prefix, canonical_prefix);
- }
-
private:
- ResolveExpr (NodeId parent, const CanonicalPath &prefix,
- const CanonicalPath &canonical_prefix)
- : ResolverBase (parent), prefix (prefix),
- canonical_prefix (canonical_prefix)
- {}
+ ResolveExpr (const CanonicalPath &prefix,
+ const CanonicalPath &canonical_prefix);
const CanonicalPath &prefix;
const CanonicalPath &canonical_prefix;