Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove unused method from TyS
  • Loading branch information
oli-obk committed Nov 30, 2017
1 parent 4fa202d commit 12697fa
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/librustc/ty/sty.rs
Expand Up @@ -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(),
Expand Down

0 comments on commit 12697fa

Please sign in to comment.