diff options
| author | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2017-11-30 16:11:27 +0100 |
|---|---|---|
| committer | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2017-11-30 16:11:27 +0100 |
| commit | 12697fa998cb3def57275254df78825def0c01b8 (patch) | |
| tree | c52238bf75c11dc44875aa58f4d613396212b2dd | |
| parent | 4fa202d23b4c8c81b8ac6cf89cf843d35854d437 (diff) | |
Remove unused method from TyS
| -rw-r--r-- | src/librustc/ty/sty.rs | 7 |
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(), |
