From: Arthur Cohen <[email protected]>
gcc/rust/ChangeLog:
* resolve/rust-early-name-resolver-2.0.cc
(Early::visit): Remove visitors.
* resolve/rust-early-name-resolver-2.0.h: Likewise.
---
gcc/rust/resolve/rust-early-name-resolver-2.0.cc | 16 ----------------
gcc/rust/resolve/rust-early-name-resolver-2.0.h | 5 +----
2 files changed, 1 insertion(+), 20 deletions(-)
diff --git a/gcc/rust/resolve/rust-early-name-resolver-2.0.cc
b/gcc/rust/resolve/rust-early-name-resolver-2.0.cc
index 48bb4c68d26..a5d5b191c88 100644
--- a/gcc/rust/resolve/rust-early-name-resolver-2.0.cc
+++ b/gcc/rust/resolve/rust-early-name-resolver-2.0.cc
@@ -188,22 +188,6 @@ Early::visit (AST::MacroInvocation &invoc)
mappings->insert_macro_invocation (invoc, rules_def);
}
-void
-Early::visit (AST::UseDeclaration &use)
-{}
-
-void
-Early::visit (AST::UseTreeRebind &use)
-{}
-
-void
-Early::visit (AST::UseTreeList &use)
-{}
-
-void
-Early::visit (AST::UseTreeGlob &use)
-{}
-
void
Early::visit_attributes (std::vector<AST::Attribute> &attrs)
{
diff --git a/gcc/rust/resolve/rust-early-name-resolver-2.0.h
b/gcc/rust/resolve/rust-early-name-resolver-2.0.h
index 46c4b936866..d9f985fe575 100644
--- a/gcc/rust/resolve/rust-early-name-resolver-2.0.h
+++ b/gcc/rust/resolve/rust-early-name-resolver-2.0.h
@@ -50,10 +50,7 @@ public:
void visit (AST::Module &) override;
void visit (AST::MacroInvocation &) override;
- void visit (AST::UseDeclaration &) override;
- void visit (AST::UseTreeRebind &) override;
- void visit (AST::UseTreeList &) override;
- void visit (AST::UseTreeGlob &) override;
+
void visit (AST::Function &) override;
void visit (AST::StructStruct &) override;
--
2.42.1