diff --git a/components/style/gecko_bindings/sugar/ns_com_ptr.rs b/components/style/gecko_bindings/sugar/ns_com_ptr.rs index f50eda02c3d..488dc862608 100644 --- a/components/style/gecko_bindings/sugar/ns_com_ptr.rs +++ b/components/style/gecko_bindings/sugar/ns_com_ptr.rs @@ -13,13 +13,6 @@ impl nsCOMPtr { pub fn raw(&self) -> *mut T { self.mRawPtr } - - /// Set this pointer from an addrefed raw pointer. - /// It leaks the old pointer. - #[inline] - pub unsafe fn set_raw_from_addrefed(&mut self, ptr: *mut T) { - self.mRawPtr = ptr; - } } #[cfg(not(feature = "gecko_debug"))] @@ -29,11 +22,4 @@ impl nsCOMPtr { pub fn raw(&self) -> *mut T { self._base.mRawPtr as *mut _ } - - /// Set this pointer from an addrefed raw pointer. - /// It leaks the old pointer. - #[inline] - pub unsafe fn set_raw_from_addrefed(&mut self, ptr: *mut T) { - self._base.mRawPtr = ptr as *mut _; - } }