about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2017-11-30 16:11:27 +0100
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2017-11-30 16:11:27 +0100
commit12697fa998cb3def57275254df78825def0c01b8 (patch)
treec52238bf75c11dc44875aa58f4d613396212b2dd
parent4fa202d23b4c8c81b8ac6cf89cf843d35854d437 (diff)
Remove unused method from TyS
-rw-r--r--src/librustc/ty/sty.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/librustc/ty/sty.rs b/src/librustc/ty/sty.rs
index caf78309cc2..d9066d38994 100644
--- a/src/librustc/ty/sty.rs
+++ b/src/librustc/ty/sty.rs
@@ -1176,13 +1176,6 @@ impl RegionKind {
 
 /// Type utilities
 impl<'a, 'gcx, 'tcx> TyS<'tcx> {
-    pub fn as_opt_param_ty(&self) -> Option<ty::ParamTy> {
-        match self.sty {
-            ty::TyParam(ref d) => Some(d.clone()),
-            _ => None,
-        }
-    }
-
     pub fn is_nil(&self) -> bool {
         match self.sty {
             TyTuple(ref tys, _) => tys.is_empty(),