diff --git a/src/lib.rs b/src/lib.rs index a1976db419..bf0b7bd542 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -180,19 +180,6 @@ where unsafe { &*self.peripheral.get() } } - /// Mutably borrows the resource without locking - /// - /// NOTE The system ceiling must be higher than this resource ceiling - pub fn borrow_mut<'l, SC>( - &'static self, - _system_ceiling: &'l mut SC, - ) -> &'l mut P - where - SC: HigherThan, - { - unsafe { &mut *self.peripheral.get() } - } - /// Returns an immutable reference to the inner data without locking /// /// # Safety @@ -327,16 +314,6 @@ where unsafe { &*self.data.get() } } - /// Mutably borrows the resource without locking - /// - /// NOTE The system ceiling must be higher than this resource ceiling - pub fn borrow_mut<'l, SC>(&'static self, _ctxt: &'l mut SC) -> &'l mut T - where - SC: HigherThan, - { - unsafe { &mut *self.data.get() } - } - /// Returns an immutable reference to the inner data without locking /// /// # Safety