Skip to content

Commit f0ebff4

Browse files
Merge pull request #22002 from Shourya742/2026-04-09-remove-try-normalize-use-tree
Remove try-normalize-use-tree
2 parents 7960fa9 + aefcd38 commit f0ebff4

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

crates/ide-db/src/imports/merge_imports.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -256,16 +256,6 @@ pub fn try_normalize_import(use_item: &ast::Use, style: NormalizationStyle) -> O
256256
Some(use_item)
257257
}
258258

259-
/// Normalizes a use tree (see [`try_normalize_import`] doc).
260-
pub fn try_normalize_use_tree(
261-
use_tree: &ast::UseTree,
262-
style: NormalizationStyle,
263-
) -> Option<ast::UseTree> {
264-
let use_tree = use_tree.clone_subtree().clone_for_update();
265-
try_normalize_use_tree_mut(&use_tree, style)?;
266-
Some(use_tree)
267-
}
268-
269259
pub fn try_normalize_use_tree_mut(
270260
use_tree: &ast::UseTree,
271261
style: NormalizationStyle,

0 commit comments

Comments
 (0)