Hans Leidekker : webservices: Get rid of insert_string_cb.

Alexandre Julliard julliard at winehq.org
Tue Oct 3 15:39:53 CDT 2017


Module: wine
Branch: master
Commit: c80c45127e9027fca9d1e42111be72949398722c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c80c45127e9027fca9d1e42111be72949398722c

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Tue Oct  3 16:14:45 2017 +0200

webservices: Get rid of insert_string_cb.

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/webservices/string.c              | 12 ------------
 dlls/webservices/webservices_private.h |  1 -
 2 files changed, 13 deletions(-)

diff --git a/dlls/webservices/string.c b/dlls/webservices/string.c
index 75e8b75..45a5512 100644
--- a/dlls/webservices/string.c
+++ b/dlls/webservices/string.c
@@ -152,18 +152,6 @@ HRESULT insert_string( struct dictionary *dict, unsigned char *data, ULONG len,
     return S_OK;
 }
 
-HRESULT CALLBACK insert_string_cb( void *state, const WS_XML_STRING *str, BOOL *found, ULONG *id, WS_ERROR *error )
-{
-    struct dictionary *dict = state;
-    int index = find_string( dict, str->bytes, str->length, id );
-    HRESULT hr = S_OK;
-
-    assert( !dict->dict.isConst );
-    if (index == -1 || (hr = insert_string( dict, str->bytes, str->length, index, id )) == S_OK) *found = TRUE;
-    else *found = FALSE;
-    return hr;
-}
-
 HRESULT add_xml_string( WS_XML_STRING *str )
 {
     HRESULT hr = S_OK;
diff --git a/dlls/webservices/webservices_private.h b/dlls/webservices/webservices_private.h
index d30f7a3..f8cc6d9 100644
--- a/dlls/webservices/webservices_private.h
+++ b/dlls/webservices/webservices_private.h
@@ -49,7 +49,6 @@ const struct dictionary dict_builtin_static DECLSPEC_HIDDEN;
 
 int find_string( const struct dictionary *, const unsigned char *, ULONG, ULONG * ) DECLSPEC_HIDDEN;
 HRESULT insert_string( struct dictionary *, unsigned char *, ULONG, int, ULONG * ) DECLSPEC_HIDDEN;
-HRESULT CALLBACK insert_string_cb( void *, const WS_XML_STRING *, BOOL *, ULONG *, WS_ERROR * ) DECLSPEC_HIDDEN;
 void clear_dict( struct dictionary * ) DECLSPEC_HIDDEN;
 HRESULT writer_enable_lookup( WS_XML_WRITER * ) DECLSPEC_HIDDEN;
 




More information about the wine-cvs mailing list