aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-default-resolver.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/resolve/rust-default-resolver.cc')
-rw-r--r--gcc/rust/resolve/rust-default-resolver.cc16
1 files changed, 0 insertions, 16 deletions
diff --git a/gcc/rust/resolve/rust-default-resolver.cc b/gcc/rust/resolve/rust-default-resolver.cc
index 1d54f91..fc81001 100644
--- a/gcc/rust/resolve/rust-default-resolver.cc
+++ b/gcc/rust/resolve/rust-default-resolver.cc
@@ -68,22 +68,6 @@ DefaultResolver::visit (AST::Function &function)
}
void
-DefaultResolver::visit (AST::Method &method)
-{
- auto def_fn = [this, &method] () {
- for (auto &param : method.get_function_params ())
- {
- param.get_pattern ()->accept_vis (*this);
- param.get_type ()->accept_vis (*this);
- }
-
- method.get_definition ()->accept_vis (*this);
- };
-
- ctx.scoped (Rib::Kind::Function, method.get_node_id (), def_fn);
-}
-
-void
DefaultResolver::visit (AST::ForLoopExpr &expr)
{
ctx.scoped (Rib::Kind::Normal, expr.get_node_id (), [this, &expr] () {