This is unused. Signed-off-by: Gary Guo --- rust/kernel/device_id.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/rust/kernel/device_id.rs b/rust/kernel/device_id.rs index 8e9721446014..fbf6d8e6afb9 100644 --- a/rust/kernel/device_id.rs +++ b/rust/kernel/device_id.rs @@ -166,9 +166,6 @@ pub trait IdTable { /// Obtain the pointer to the ID table. fn as_ptr(&self) -> *const T::RawType; - /// Obtain the pointer to the bus specific device ID from an index. - fn id(&self, index: usize) -> &T::RawType; - /// Obtain the pointer to the driver-specific information from an index. fn info(&self, index: usize) -> &U; } @@ -180,10 +177,6 @@ fn as_ptr(&self) -> *const T::RawType { core::ptr::from_ref(self).cast() } - fn id(&self, index: usize) -> &T::RawType { - &self.raw_ids.ids[index] - } - fn info(&self, index: usize) -> &U { &self.id_infos[index] } -- 2.54.0