]> git.lizzy.rs Git - rust.git/commitdiff
Remove unused methods
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Sat, 24 Jun 2017 21:24:07 +0000 (23:24 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 29 Jun 2017 07:48:17 +0000 (09:48 +0200)
src/librustc/infer/mod.rs

index d5020b12ee00e12c5e86295d92ad75a9a8219c03..9500e4a36048d8115c02a36dc93f8f82c4f8c56b 100644 (file)
@@ -1191,28 +1191,6 @@ pub fn fully_resolve<T:TypeFoldable<'tcx>>(&self, value: &T) -> FixupResult<T> {
     // types using one of these methods, and should not call span_err directly for such
     // errors.
 
-    pub fn type_error_message<M>(&self,
-                                 sp: Span,
-                                 mk_msg: M,
-                                 actual_ty: Ty<'tcx>)
-        where M: FnOnce(String) -> String,
-    {
-        self.type_error_struct(sp, mk_msg, actual_ty).emit();
-    }
-
-    // FIXME: this results in errors without an error code. Deprecate?
-    pub fn type_error_struct<M>(&self,
-                                sp: Span,
-                                mk_msg: M,
-                                actual_ty: Ty<'tcx>)
-                                -> DiagnosticBuilder<'tcx>
-        where M: FnOnce(String) -> String,
-    {
-        self.type_error_struct_with_diag(sp, |actual_ty| {
-            self.tcx.sess.struct_span_err(sp, &mk_msg(actual_ty))
-        }, actual_ty)
-    }
-
     pub fn type_error_struct_with_diag<M>(&self,
                                           sp: Span,
                                           mk_diag: M,