Rustup to rustc 1.16.0-nightly (468227129 2017-01-03): Eliminate has_self util

This commit is contained in:
Manish Goregaokar
2017-01-04 13:06:38 -08:00
parent 5aea0b2062
commit a262e3bb0b
2 changed files with 15 additions and 12 deletions

View File

@@ -906,6 +906,3 @@ pub fn is_self(slf: &Arg) -> bool {
}
}
pub fn has_self(slf: &FnDecl) -> bool {
slf.inputs.get(0).map(|arg| is_self(&arg)).unwrap_or(false)
}