From f9ff78bdd546b2a420fbb0056cc9d1a6a0e40132 Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Sat, 9 Nov 2019 00:06:37 +0100 Subject: [PATCH] Remove cruft. --- src/librustc/mir/interpret/value.rs | 10 ---------- src/librustc/ty/sty.rs | 5 ----- 2 files changed, 15 deletions(-) diff --git a/src/librustc/mir/interpret/value.rs b/src/librustc/mir/interpret/value.rs index e5778528e38..a0367154b75 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 bb2fc9f0131..8f6fc02ab4b 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.