Skip to content

Commit 12697fa

Browse files
committed
Remove unused method from TyS
1 parent 4fa202d commit 12697fa

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/librustc/ty/sty.rs

-7
Original file line numberDiff line numberDiff line change
@@ -1176,13 +1176,6 @@ impl RegionKind {
11761176

11771177
/// Type utilities
11781178
impl<'a, 'gcx, 'tcx> TyS<'tcx> {
1179-
pub fn as_opt_param_ty(&self) -> Option<ty::ParamTy> {
1180-
match self.sty {
1181-
ty::TyParam(ref d) => Some(d.clone()),
1182-
_ => None,
1183-
}
1184-
}
1185-
11861179
pub fn is_nil(&self) -> bool {
11871180
match self.sty {
11881181
TyTuple(ref tys, _) => tys.is_empty(),

0 commit comments

Comments
 (0)