Skip to content
Snippets Groups Projects
Commit f0fa9875 authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

rust-index: remove `__setitem__` method from the mixed index

This is not defined on the Python or C one, and isn't used anywhere.
parent e79b0a4b
No related branches found
No related tags found
2 merge requests!737Improvements to the Rust index's performance,!708Implement pure rust revlog Index
......@@ -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<bool> {
// ObjectProtocol does not seem to provide contains(), so
// this is an equivalent implementation of the index_contains()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment