Skip to content

Commit 13ad462

Browse files
committed
remove iterator + array_access methods
these no longer have a use, since interfaces no longer implement based on a delaying function
1 parent 32b44c6 commit 13ad462

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

phper-doc/doc/_06_module/_07_register_interface/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ If you want the interface `Foo` extends `ArrayAccess` and `Iterator` interfaces.
4242

4343
```rust,no_run
4444
use phper::classes::{Interface, InterfaceEntity, ClassEntry};
45-
use phper::classes::{array_access_class, iterator_class};
4645
4746
let mut foo = InterfaceEntity::new("Foo");
4847
foo.extends(Interface::from_name("ArrayAccess"));

phper/src/classes.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,6 @@ use std::{
3636
slice,
3737
};
3838

39-
/// Predefined interface `Iterator`.
40-
#[inline]
41-
pub fn iterator_class<'a>() -> &'a ClassEntry {
42-
unsafe { ClassEntry::from_ptr(zend_ce_iterator) }
43-
}
44-
45-
/// Predefined interface `ArrayAccess`.
46-
#[inline]
47-
pub fn array_access_class<'a>() -> &'a ClassEntry {
48-
unsafe { ClassEntry::from_ptr(zend_ce_arrayaccess) }
49-
}
50-
5139
/// Wrapper of [zend_class_entry].
5240
#[derive(Clone)]
5341
#[repr(transparent)]

0 commit comments

Comments
 (0)