changeset 43180 | b3dda04e851b |
parent 43179 | 7d6758f2d50c |
child 43272 | 00222775d59b |
--- a/rust/hg-cpython/src/ref_sharing.rs Sun Sep 15 16:59:50 2019 +0900 +++ b/rust/hg-cpython/src/ref_sharing.rs Sun Sep 15 17:02:31 2019 +0900 @@ -310,15 +310,6 @@ let data = self.$data_member(py); unsafe { PySharedRef::new(py, owner, data) } } - - // TODO: remove this function in favor of $shared_accessor(py) - fn borrow_mut<'a>( - &'a self, - py: Python<'a>, - ) -> PyResult<crate::ref_sharing::PyRefMut<'a, $inner_struct>> - { - self.$shared_accessor(py).borrow_mut() - } } }; }