From fbad2e2ae9ae2793c99999b7e32ab9e8c77aa830 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Thu, 14 Nov 2013 22:20:12 -0500 Subject: [PATCH] remove `cast::unsafe_copy` This is the same functionality as `ptr::read_ptr`. --- src/libstd/cast.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/libstd/cast.rs b/src/libstd/cast.rs index 05a72dc4109e7..bc4579c00a00c 100644 --- a/src/libstd/cast.rs +++ b/src/libstd/cast.rs @@ -25,14 +25,6 @@ pub unsafe fn transmute_copy(src: &T) -> U { dest } -/** - * Forces a copy of a value, even if that value is considered noncopyable. - */ -#[inline] -pub unsafe fn unsafe_copy(thing: &T) -> T { - transmute_copy(thing) -} - /** * Move a thing into the void *