Skip to content

Commit

Permalink
middle: typeck: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
emberian committed Apr 2, 2014
1 parent 009389f commit 3bd0a37
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/librustc/middle/typeck/mod.rs
Expand Up @@ -264,15 +264,6 @@ pub fn write_substs_to_tcx(tcx: &ty::ctxt,
tcx.node_type_substs.borrow_mut().insert(node_id, substs);
}
}
pub fn write_tpt_to_tcx(tcx: &ty::ctxt,
node_id: ast::NodeId,
tpt: &ty::ty_param_substs_and_ty) {
write_ty_to_tcx(tcx, node_id, tpt.ty);
if !tpt.substs.tps.is_empty() {
write_substs_to_tcx(tcx, node_id, tpt.substs.tps.clone());
}
}

pub fn lookup_def_tcx(tcx:&ty::ctxt, sp: Span, id: ast::NodeId) -> ast::Def {
match tcx.def_map.borrow().find(&id) {
Some(&x) => x,
Expand Down

0 comments on commit 3bd0a37

Please sign in to comment.