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]>
---
This change was merged into the gccrs repository and is posted here for
upstream visibility and potential drive-by review, as requested by GCC
release managers.
Each commit email contains a link to its details on github from where you can
find the Pull-Request and associated discussions.
Commit on github:
https://github.com/Rust-GCC/gccrs/commit/e743e61e7b462322c00b0f3d6ae78a566c3dbb4a
The commit has been mentioned in the following issue(s):
- Rust-GCC/gccrs#3397: https://github.com/Rust-GCC/gccrs/issues/3397
The commit has been mentioned in the following pull-request(s):
- https://github.com/Rust-GCC/gccrs/pull/5077
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 440b8b805..32e11a0a5 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
{
base-commit: 5b05c49738f9270dd0ca8c37ef0f2a837c32dfb7
--
2.56.1