Skip to content

Commit f9ff78b

Browse files
committed
Remove cruft.
1 parent 3ebfa18 commit f9ff78b

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

src/librustc/mir/interpret/value.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,6 @@ impl<'tcx> ConstValue<'tcx> {
5454
ConstValue::Scalar(val) => Some(val),
5555
}
5656
}
57-
//
58-
// #[inline]
59-
// pub fn try_to_bits(&self, size: Size) -> Option<u128> {
60-
// self.try_to_scalar()?.to_bits(size).ok()
61-
// }
62-
//
63-
// #[inline]
64-
// pub fn try_to_ptr(&self) -> Option<Pointer> {
65-
// self.try_to_scalar()?.to_ptr().ok()
66-
// }
6757
}
6858

6959
/// A `Scalar` represents an immediate, primitive value existing outside of a

src/librustc/ty/sty.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2404,11 +2404,6 @@ impl<'tcx> ConstKind<'tcx> {
24042404
pub fn try_to_bits(&self, size: ty::layout::Size) -> Option<u128> {
24052405
self.try_to_scalar()?.to_bits(size).ok()
24062406
}
2407-
2408-
//#[inline]
2409-
//pub fn try_to_ptr(&self) -> Option<mir::interpret::Pointer> {
2410-
// self.try_to_scalar()?.to_ptr().ok()
2411-
//}
24122407
}
24132408

24142409
/// An inference variable for a const, for use in const generics.

0 commit comments

Comments
 (0)