From: Ata Borla <[email protected]>
related Rust-GCC/gccrs#3397 deleted insert_type_by_node_id and
lookup_type_by_id for unused
gcc/rust/ChangeLog:
* typecheck/rust-typecheck-context.cc
(TypeCheckContext::insert_type_by_node_id):
deleted for unused
(TypeCheckContext::lookup_type_by_node_id): deleted for unused
Signed-off-by: Ata Borla <[email protected]>
Tested on x86_64-pc-linux-gnu.
---
gcc/rust/typecheck/rust-typecheck-context.cc | 18 ------------------
1 file changed, 18 deletions(-)
diff --git a/gcc/rust/typecheck/rust-typecheck-context.cc
b/gcc/rust/typecheck/rust-typecheck-context.cc
index 440b8b8050f..32e11a0a507 100644
--- a/gcc/rust/typecheck/rust-typecheck-context.cc
+++ b/gcc/rust/typecheck/rust-typecheck-context.cc
@@ -174,24 +174,6 @@ TypeCheckContext::clear_type (TyTy::BaseType *ty)
resolved.erase (it);
}
-void
-TypeCheckContext::insert_type_by_node_id (NodeId ref, HirId id)
-{
- rust_assert (node_id_refs.find (ref) == node_id_refs.end ());
- node_id_refs[ref] = id;
-}
-
-bool
-TypeCheckContext::lookup_type_by_node_id (NodeId ref, HirId *id)
-{
- auto it = node_id_refs.find (ref);
- if (it == node_id_refs.end ())
- return false;
-
- *id = it->second;
- return true;
-}
-
bool
TypeCheckContext::have_function_context () const
{
--
2.55.0