diff --git a/src/librustc/ty/steal.rs b/src/librustc/ty/steal.rs index 0d31bdceedc..a8f9301ba51 100644 --- a/src/librustc/ty/steal.rs +++ b/src/librustc/ty/steal.rs @@ -43,8 +43,4 @@ pub fn steal(&self) -> T { let value = value_ref.take(); value.expect("attempt to read from stolen value") } - - pub fn stolen(&self) -> bool { - self.value.borrow().is_none() - } }