Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-db/src/items_locator.rs')
-rw-r--r--crates/ide-db/src/items_locator.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/crates/ide-db/src/items_locator.rs b/crates/ide-db/src/items_locator.rs
index 9fd576625a..a61acc5dd5 100644
--- a/crates/ide-db/src/items_locator.rs
+++ b/crates/ide-db/src/items_locator.rs
@@ -19,20 +19,18 @@ pub fn items_with_name<'a>(
krate: Crate,
name: NameToImport,
assoc_item_search: AssocSearchMode,
- local_limit: Option<usize>,
) -> impl Iterator<Item = ItemInNs> + 'a {
let _p = profile::span("items_with_name").detail(|| {
format!(
- "Name: {}, crate: {:?}, assoc items: {:?}, limit: {:?}",
+ "Name: {}, crate: {:?}, assoc items: {:?}",
name.text(),
assoc_item_search,
krate.display_name(sema.db).map(|name| name.to_string()),
- local_limit,
)
});
let prefix = matches!(name, NameToImport::Prefix(..));
- let (mut local_query, external_query) = match name {
+ let (local_query, external_query) = match name {
NameToImport::Prefix(exact_name, case_sensitive)
| NameToImport::Exact(exact_name, case_sensitive) => {
let mut local_query = symbol_index::Query::new(exact_name.clone());
@@ -70,10 +68,6 @@ pub fn items_with_name<'a>(
}
};
- if let Some(limit) = local_limit {
- local_query.limit(limit);
- }
-
find_items(sema, krate, local_query, external_query)
}