From cb89c7b4d895a8f4d6b09ebbc610a6829d4b2bed Mon Sep 17 00:00:00 2001 From: Joe Hoyle Date: Wed, 19 Jul 2023 11:02:56 +0200 Subject: [PATCH] Revert change to function --- src/zend/function.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/zend/function.rs b/src/zend/function.rs index 51d3e8c..ba889d7 100644 --- a/src/zend/function.rs +++ b/src/zend/function.rs @@ -2,7 +2,7 @@ use std::{fmt::Debug, os::raw::c_char, ptr}; -use crate::{ffi::{zend_function_entry, zend_function}, flags::FunctionType}; +use crate::ffi::zend_function_entry; /// A Zend function entry. pub type FunctionEntry = zend_function_entry; @@ -36,11 +36,3 @@ impl FunctionEntry { Box::into_raw(Box::new(self)) } } - -pub type Function = zend_function; - -impl Function { - pub fn type_(&self) -> FunctionType { - FunctionType::from(unsafe { self.type_ }) - } -}