middle: pat_util: remove dead code

This commit is contained in:
Corey Richardson 2014-04-01 10:26:53 -04:00
parent dc59df776a
commit 39fce48324

View File

@ -86,12 +86,6 @@ pub fn pat_bindings(dm: resolve::DefMap,
});
}
pub fn pat_binding_ids(dm: resolve::DefMap, pat: &Pat) -> Vec<NodeId> {
let mut found = Vec::new();
pat_bindings(dm, pat, |_bm, b_id, _sp, _pt| found.push(b_id) );
return found;
}
/// Checks if the pattern contains any patterns that bind something to
/// an ident, e.g. `foo`, or `Foo(foo)` or `foo @ Bar(..)`.
pub fn pat_contains_bindings(dm: resolve::DefMap, pat: &Pat) -> bool {