about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan MacKenzie <ecstaticmorse@gmail.com>2019-09-17 16:25:33 -0700
committerDylan MacKenzie <ecstaticmorse@gmail.com>2019-09-28 07:06:51 -0700
commit3a5442a89100b6d7adaf5cb82ee6665a0aa049eb (patch)
treed40bfa73885fde48da800cabe01bb9d98b5fa4c4
parenteec93ca08c5116e1e7f4517bd851670ffc6c33f5 (diff)
downloadrust-3a5442a89100b6d7adaf5cb82ee6665a0aa049eb.tar.gz
rust-3a5442a89100b6d7adaf5cb82ee6665a0aa049eb.zip
Remove unnecessary method
-rw-r--r--src/librustc_mir/transform/check_consts/qualifs.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/librustc_mir/transform/check_consts/qualifs.rs b/src/librustc_mir/transform/check_consts/qualifs.rs
index 0050a56624b..33034cb8880 100644
--- a/src/librustc_mir/transform/check_consts/qualifs.rs
+++ b/src/librustc_mir/transform/check_consts/qualifs.rs
@@ -170,16 +170,6 @@ trait Qualif {
         // Be conservative about the returned value of a const fn.
         Self::in_any_value_of_ty(cx, return_ty).unwrap_or(false)
     }
-
-    fn in_value(cx: &ConstCx<'_, 'tcx>, source: ValueSource<'_, 'tcx>) -> bool {
-        match source {
-            ValueSource::Rvalue(rvalue) => Self::in_rvalue(cx, rvalue),
-            ValueSource::DropAndReplace(source) => Self::in_operand(cx, source),
-            ValueSource::Call { callee, args, return_ty } => {
-                Self::in_call(cx, callee, args, return_ty)
-            }
-        }
-    }
 }
 
 /// Constant containing interior mutability (`UnsafeCell<T>`).