diff --git a/src/librustc/mir/interpret/value.rs b/src/librustc/mir/interpret/value.rs index e5778528e38a..a0367154b75b 100644 --- a/src/librustc/mir/interpret/value.rs +++ b/src/librustc/mir/interpret/value.rs @@ -54,16 +54,6 @@ impl<'tcx> ConstValue<'tcx> { ConstValue::Scalar(val) => Some(val), } } -// -// #[inline] -// pub fn try_to_bits(&self, size: Size) -> Option { -// self.try_to_scalar()?.to_bits(size).ok() -// } -// -// #[inline] -// pub fn try_to_ptr(&self) -> Option { -// self.try_to_scalar()?.to_ptr().ok() -// } } /// A `Scalar` represents an immediate, primitive value existing outside of a diff --git a/src/librustc/ty/sty.rs b/src/librustc/ty/sty.rs index bb2fc9f01314..8f6fc02ab4b3 100644 --- a/src/librustc/ty/sty.rs +++ b/src/librustc/ty/sty.rs @@ -2404,11 +2404,6 @@ impl<'tcx> ConstKind<'tcx> { pub fn try_to_bits(&self, size: ty::layout::Size) -> Option { self.try_to_scalar()?.to_bits(size).ok() } - - //#[inline] - //pub fn try_to_ptr(&self) -> Option { - // self.try_to_scalar()?.to_ptr().ok() - //} } /// An inference variable for a const, for use in const generics.