Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/body.rs')
-rw-r--r--crates/hir-def/src/body.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/crates/hir-def/src/body.rs b/crates/hir-def/src/body.rs
index c6c1849003..545d2bebf5 100644
--- a/crates/hir-def/src/body.rs
+++ b/crates/hir-def/src/body.rs
@@ -422,13 +422,6 @@ impl Body {
}
}
- pub fn walk_child_bindings(&self, pat: PatId, f: &mut impl FnMut(BindingId)) {
- if let Pat::Bind { id, .. } = self[pat] {
- f(id)
- }
- self[pat].walk_child_pats(|p| self.walk_child_bindings(p, f));
- }
-
pub fn pretty_print(&self, db: &dyn DefDatabase, owner: DefWithBodyId) -> String {
pretty::print_body_hir(db, self, owner)
}