From 7fb13062757e0140bca4d1b2653a2cbc104d0edd Mon Sep 17 00:00:00 2001 From: Noah Lev Date: Thu, 21 Oct 2021 20:03:11 -0700 Subject: [PATCH] Remove unused impl of `GetDefId` for `Option` --- src/librustdoc/clean/types.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/librustdoc/clean/types.rs b/src/librustdoc/clean/types.rs index c872d6480fef..a3c6482bae7a 100644 --- a/src/librustdoc/clean/types.rs +++ b/src/librustdoc/clean/types.rs @@ -1469,16 +1469,6 @@ crate trait GetDefId { fn def_id_full(&self, cache: &Cache) -> Option; } -impl GetDefId for Option { - fn def_id(&self) -> Option { - self.as_ref().and_then(|d| d.def_id()) - } - - fn def_id_full(&self, cache: &Cache) -> Option { - self.as_ref().and_then(|d| d.def_id_full(cache)) - } -} - impl Type { crate fn primitive_type(&self) -> Option { match *self {