diff options
Diffstat (limited to 'gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc')
-rw-r--r-- | gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc b/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc index 486998d..fc62db7 100644 --- a/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc +++ b/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc @@ -192,14 +192,6 @@ TopLevel::visit (AST::Function &function) } void -TopLevel::visit (AST::Method &method) -{ - insert_or_error_out (method.get_method_name (), method, Namespace::Values); - - method.get_definition ()->accept_vis (*this); -} - -void TopLevel::visit (AST::BlockExpr &expr) { // extracting the lambda from the `scoped` call otherwise the code looks like |