Skip to content

Commit c5250e2

Browse files
authored
Merge pull request RustPython#3413 from DimitrisJim/remove_old_code
Remove slot_new for longrange_iterator.
2 parents 2309e59 + a8a3cae commit c5250e2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

vm/src/builtins/range.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -515,11 +515,6 @@ impl PyValue for PyLongRangeIterator {
515515

516516
#[pyimpl(with(Constructor, IterNext))]
517517
impl PyLongRangeIterator {
518-
#[pyslot]
519-
fn slot_new(_cls: PyTypeRef, _args: FuncArgs, vm: &VirtualMachine) -> PyResult {
520-
Err(vm.new_type_error("cannot create 'longrange_iterator' instances".to_owned()))
521-
}
522-
523518
#[pymethod(magic)]
524519
fn length_hint(&self) -> BigInt {
525520
let index = BigInt::from(self.index.load());

0 commit comments

Comments
 (0)