https://gcc.gnu.org/g:059b00a156ad16ef7c780c646df7809fa5261802

commit r17-6659-g059b00a156ad16ef7c780c646df7809fa5261802
Author: Ata Borla <[email protected]>
Date:   Tue Nov 10 21:22:50 2026 +0300

    gccrs: deleted unused functions
    
    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]>

Diff:
---
 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 440b8b8050f3..32e11a0a5072 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
 {

Reply via email to