Skip to content

Commit 35c98a8

Browse files
committed
middle: kind: remove dead code
1 parent fb19d68 commit 35c98a8

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/librustc/middle/kind.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -450,17 +450,6 @@ fn check_copy(cx: &Context, ty: ty::t, sp: Span, reason: &str) {
450450
}
451451
}
452452

453-
pub fn check_send(cx: &Context, ty: ty::t, sp: Span) -> bool {
454-
if !ty::type_is_sendable(cx.tcx, ty) {
455-
cx.tcx.sess.span_err(
456-
sp, format!("value has non-sendable type `{}`",
457-
ty_to_str(cx.tcx, ty)));
458-
false
459-
} else {
460-
true
461-
}
462-
}
463-
464453
pub fn check_static(tcx: &ty::ctxt, ty: ty::t, sp: Span) -> bool {
465454
if !ty::type_is_static(tcx, ty) {
466455
match ty::get(ty).sty {

0 commit comments

Comments
 (0)