aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-finalize-imports-2.0.cc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2025-03-13 15:18:58 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-24 13:07:23 +0100
commitd7b9a0f08638cd9ba67f0c07f2cd85a227bb3cae (patch)
tree2d4fac49e77ea6089ad435282dc9fae113ddcdd2 /gcc/rust/resolve/rust-finalize-imports-2.0.cc
parente3dd0a4d7b2a1f6200c8daf75df1a275255ff1f7 (diff)
downloadgcc-d7b9a0f08638cd9ba67f0c07f2cd85a227bb3cae.zip
gcc-d7b9a0f08638cd9ba67f0c07f2cd85a227bb3cae.tar.gz
gcc-d7b9a0f08638cd9ba67f0c07f2cd85a227bb3cae.tar.bz2
gccrs: Remove finalize import visitor
This visitor is not used anymore. gcc/rust/ChangeLog: * resolve/rust-finalize-imports-2.0.cc (FinalizeImports::FinalizeImports): Remove constructor. (FinalizeImports::go): Remove function. (FinalizeImports::visit): Likewise. * resolve/rust-finalize-imports-2.0.h (class FinalizeImports): Remove FinalizeImports class. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/resolve/rust-finalize-imports-2.0.cc')
-rw-r--r--gcc/rust/resolve/rust-finalize-imports-2.0.cc18
1 files changed, 0 insertions, 18 deletions
diff --git a/gcc/rust/resolve/rust-finalize-imports-2.0.cc b/gcc/rust/resolve/rust-finalize-imports-2.0.cc
index bd6002a..b0e8651 100644
--- a/gcc/rust/resolve/rust-finalize-imports-2.0.cc
+++ b/gcc/rust/resolve/rust-finalize-imports-2.0.cc
@@ -125,23 +125,5 @@ GlobbingVisitor::visit (AST::UseDeclaration &use)
// Handle cycles ?
}
-FinalizeImports::FinalizeImports (Early::ImportMappings &&data,
- TopLevel &toplevel,
- NameResolutionContext &ctx)
- : DefaultResolver (ctx), data (std::move (data)), toplevel (toplevel),
- ctx (ctx)
-{}
-
-void
-FinalizeImports::go (AST::Crate &crate)
-{
- for (auto &item : crate.items)
- item->accept_vis (*this);
-}
-
-void
-FinalizeImports::visit (AST::UseDeclaration &use)
-{}
-
} // namespace Resolver2_0
} // namespace Rust