diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c index b6546cb910e83..bc17a3d3041a4 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -186,38 +186,6 @@ encodePtr get_encoder_ex(sdlPtr sdl, const char *nscat, size_t len) return NULL; } -sdlBindingPtr get_binding_from_type(sdlPtr sdl, sdlBindingType type) -{ - sdlBindingPtr binding; - - if (sdl == NULL) { - return NULL; - } - - ZEND_HASH_MAP_FOREACH_PTR(sdl->bindings, binding) { - if (binding->bindingType == type) { - return binding; - } - } ZEND_HASH_FOREACH_END(); - return NULL; -} - -sdlBindingPtr get_binding_from_name(sdlPtr sdl, char *name, char *ns) -{ - sdlBindingPtr binding; - smart_str key = {0}; - - smart_str_appends(&key, ns); - smart_str_appendc(&key, ':'); - smart_str_appends(&key, name); - smart_str_0(&key); - - binding = zend_hash_find_ptr(sdl->bindings, key.s); - - smart_str_free(&key); - return binding; -} - static int is_wsdl_element(xmlNodePtr node) { if (node->ns && strcmp((char*)node->ns->href, WSDL_NAMESPACE) != 0) { diff --git a/ext/soap/php_sdl.h b/ext/soap/php_sdl.h index 1acee331084a7..d2f40c64f8a12 100644 --- a/ext/soap/php_sdl.h +++ b/ext/soap/php_sdl.h @@ -257,9 +257,6 @@ encodePtr get_encoder_from_prefix(sdlPtr sdl, xmlNodePtr data, const xmlChar *ty encodePtr get_encoder(sdlPtr sdl, const char *ns, const char *type); encodePtr get_encoder_ex(sdlPtr sdl, const char *nscat, size_t len); -sdlBindingPtr get_binding_from_type(sdlPtr sdl, sdlBindingType type); -sdlBindingPtr get_binding_from_name(sdlPtr sdl, char *name, char *ns); - void delete_sdl(sdl *handle); void delete_sdl_impl(void *handle);