Unnamed repository; edit this file 'description' to name the repository.
Merge pull request #22255 from ChayimFriedman2/simp
minor: Remove some unused code
Chayim Refael Friedman 14 days ago
parent 508db31 · parent d8a9637 · commit 38b96a5
-rw-r--r--crates/hir-ty/src/lang_items.rs13
1 files changed, 1 insertions, 12 deletions
diff --git a/crates/hir-ty/src/lang_items.rs b/crates/hir-ty/src/lang_items.rs
index ae53276f56..c8e15e2f9c 100644
--- a/crates/hir-ty/src/lang_items.rs
+++ b/crates/hir-ty/src/lang_items.rs
@@ -1,19 +1,8 @@
//! Functions to detect special lang items
-use hir_def::{
- AdtId, TraitId,
- lang_item::LangItems,
- signatures::{StructFlags, StructSignature},
-};
+use hir_def::{TraitId, lang_item::LangItems};
use intern::{Symbol, sym};
-use crate::db::HirDatabase;
-
-pub fn is_box(db: &dyn HirDatabase, adt: AdtId) -> bool {
- let AdtId::StructId(id) = adt else { return false };
- StructSignature::of(db, id).flags.contains(StructFlags::IS_BOX)
-}
-
pub fn lang_items_for_bin_op(
lang_items: &LangItems,
op: syntax::ast::BinaryOp,