public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] gccrs: remove unused code in query_compile
@ 2023-04-06 21:37 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2023-04-06 21:37 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:4713107dffad79ac0c7863411928b536f90f768a

commit 4713107dffad79ac0c7863411928b536f90f768a
Author: Philip Herron <herron.philip@googlemail.com>
Date:   Tue Apr 4 15:37:33 2023 +0100

    gccrs: remove unused code in query_compile
    
    gcc/rust/ChangeLog:
    
            * backend/rust-compile-resolve-path.cc (HIRCompileBase::query_compile): remove unused
    
    Signed-off-by: Philip Herron <herron.philip@googlemail.com>

Diff:
---
 gcc/rust/backend/rust-compile-resolve-path.cc | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/gcc/rust/backend/rust-compile-resolve-path.cc b/gcc/rust/backend/rust-compile-resolve-path.cc
index ceea4f6f112..b7f1069a6f3 100644
--- a/gcc/rust/backend/rust-compile-resolve-path.cc
+++ b/gcc/rust/backend/rust-compile-resolve-path.cc
@@ -212,17 +212,6 @@ HIRCompileBase::query_compile (HirId ref, TyTy::BaseType *lookup,
       bool is_impl_item = resolved_item != nullptr;
       if (is_impl_item)
 	{
-	  rust_assert (parent_impl_id != UNKNOWN_HIRID);
-	  HIR::Item *impl_ref
-	    = ctx->get_mappings ()->lookup_hir_item (parent_impl_id);
-	  rust_assert (impl_ref != nullptr);
-	  HIR::ImplBlock *impl = static_cast<HIR::ImplBlock *> (impl_ref);
-
-	  TyTy::BaseType *self = nullptr;
-	  bool ok = ctx->get_tyctx ()->lookup_type (
-	    impl->get_type ()->get_mappings ().get_hirid (), &self);
-	  rust_assert (ok);
-
 	  if (!lookup->has_subsititions_defined ())
 	    return CompileInherentImplItem::Compile (resolved_item, ctx,
 						     nullptr, true, expr_locus);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-06 21:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-06 21:37 [gcc/devel/rust/master] gccrs: remove unused code in query_compile Thomas Schwinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).