Skip to content

Commit 3bd0a37

Browse files
committed
middle: typeck: remove dead code
1 parent 009389f commit 3bd0a37

File tree

1 file changed

+0
-9
lines changed
  • src/librustc/middle/typeck

1 file changed

+0
-9
lines changed

src/librustc/middle/typeck/mod.rs

-9
Original file line numberDiff line numberDiff line change
@@ -264,15 +264,6 @@ pub fn write_substs_to_tcx(tcx: &ty::ctxt,
264264
tcx.node_type_substs.borrow_mut().insert(node_id, substs);
265265
}
266266
}
267-
pub fn write_tpt_to_tcx(tcx: &ty::ctxt,
268-
node_id: ast::NodeId,
269-
tpt: &ty::ty_param_substs_and_ty) {
270-
write_ty_to_tcx(tcx, node_id, tpt.ty);
271-
if !tpt.substs.tps.is_empty() {
272-
write_substs_to_tcx(tcx, node_id, tpt.substs.tps.clone());
273-
}
274-
}
275-
276267
pub fn lookup_def_tcx(tcx:&ty::ctxt, sp: Span, id: ast::NodeId) -> ast::Def {
277268
match tcx.def_map.borrow().find(&id) {
278269
Some(&x) => x,

0 commit comments

Comments
 (0)