# HG changeset patch # User Raphaël Gomès # Date 1687946383 -7200 # Node ID f0fa98752d672c0494492c4f6b58d43d7096831f # Parent e79b0a4be3a7e37f4c59abfcedc45cc4552c4d33 rust-index: remove `__setitem__` method from the mixed index This is not defined on the Python or C one, and isn't used anywhere. diff -r e79b0a4be3a7 -r f0fa98752d67 rust/hg-cpython/src/revlog.rs --- a/rust/hg-cpython/src/revlog.rs Wed Jun 28 11:36:22 2023 +0200 +++ b/rust/hg-cpython/src/revlog.rs Wed Jun 28 11:59:43 2023 +0200 @@ -277,10 +277,6 @@ self.cindex(py).borrow().inner().get_item(py, key) } - def __setitem__(&self, key: PyObject, value: PyObject) -> PyResult<()> { - self.cindex(py).borrow().inner().set_item(py, key, value) - } - def __contains__(&self, item: PyObject) -> PyResult { // ObjectProtocol does not seem to provide contains(), so // this is an equivalent implementation of the index_contains()