Skip to content

Commit

Permalink
middle: pat_util: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
emberian committed Apr 2, 2014
1 parent dc59df7 commit 39fce48
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/librustc/middle/pat_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 39fce48

Please sign in to comment.