Skip to content

Commit cb89c7b

Browse files
committed
Revert change to function
1 parent 1c55085 commit cb89c7b

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/zend/function.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
use std::{fmt::Debug, os::raw::c_char, ptr};
44

5-
use crate::{ffi::{zend_function_entry, zend_function}, flags::FunctionType};
5+
use crate::ffi::zend_function_entry;
66

77
/// A Zend function entry.
88
pub type FunctionEntry = zend_function_entry;
@@ -36,11 +36,3 @@ impl FunctionEntry {
3636
Box::into_raw(Box::new(self))
3737
}
3838
}
39-
40-
pub type Function = zend_function;
41-
42-
impl Function {
43-
pub fn type_(&self) -> FunctionType {
44-
FunctionType::from(unsafe { self.type_ })
45-
}
46-
}

0 commit comments

Comments
 (0)