Skip to content

Commit

Permalink
Remove unused internal functions in soap
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsdos committed May 31, 2024
1 parent e8c6c6f commit 37f683a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 35 deletions.
32 changes: 0 additions & 32 deletions ext/soap/php_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 0 additions & 3 deletions ext/soap/php_sdl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 37f683a

Please sign in to comment.