diff --git a/catalog.c b/catalog.c index 22204676..dc22e277 100644 --- a/catalog.c +++ b/catalog.c @@ -1311,7 +1311,7 @@ xmlParseXMLCatalogFile(xmlCatalogPrefer prefer, const xmlChar *filename) { if (xmlDebugCatalogs) xmlCatalogPrintDebug( - "%d Parsing catalog %s\n", xmlGetThreadId(), filename); + "Parsing catalog %s\n", filename); cur = xmlDocGetRootElement(doc); if ((cur != NULL) && (xmlStrEqual(cur->name, BAD_CAST "catalog")) && diff --git a/doc/libxml2-api.xml b/doc/libxml2-api.xml index 8a773ca2..2b89984f 100644 --- a/doc/libxml2-api.xml +++ b/doc/libxml2-api.xml @@ -417,10 +417,6 @@ interface for all global variables of the library Deprecated, don't use - - - - Chained hash tables @@ -1289,9 +1285,7 @@ - - @@ -5867,8 +5861,6 @@ crash if you try to modify the tree)'/> - - @@ -9377,10 +9369,6 @@ crash if you try to modify the tree)'/> DEPRECATED: See xmlSetExternalEntityLoader. Get the default external entity resolver function for the application - - DEPRECATED - - Search the attribute declaring the given ID @@ -9460,10 +9448,6 @@ crash if you try to modify the tree)'/> - - DEPRECATED: Internal function, do not use. xmlGetThreadId() find the current thread ID number Note that this is likely to be broken on some platforms using pthreads as the specification doesn't mandate pthread_t to be an integer type - - Read the first UTF8 character from @utf @@ -9818,11 +9802,6 @@ crash if you try to modify the tree)'/> DEPRECATED: Alias for xmlInitParser. - - DEPRECATED: No-op. - - - Callback used in the I/O Input API to close the resource @@ -9903,10 +9882,6 @@ crash if you try to modify the tree)'/> - - DEPRECATED: Internal function, do not use. Check whether the current thread is the main thread. - - Search in the DtDs whether an element accept Mixed content (or ANY) basically if it is supposed to accept text childs diff --git a/globals.c b/globals.c index f230653a..2a163368 100644 --- a/globals.c +++ b/globals.c @@ -15,14 +15,13 @@ #include #define XML_GLOBALS_NO_REDEFINITION -#include #include #include #include #include #include #include -#include +#include #include #include "private/dict.h" @@ -122,6 +121,9 @@ struct _xmlGlobalState { xmlOutputBufferCreateFilenameFunc outputBufferCreateFilenameValue; }; +typedef struct _xmlGlobalState xmlGlobalState; +typedef xmlGlobalState *xmlGlobalStatePtr; + #ifdef LIBXML_THREAD_ENABLED /* @@ -482,44 +484,6 @@ void xmlCleanupGlobalsInternal(void) { xmlCleanupMutex(&xmlThrDefMutex); } -/** - * xmlInitializeGlobalState: - * @gs: a pointer to a newly allocated global state - * - * DEPRECATED: No-op. - */ -void -xmlInitializeGlobalState(xmlGlobalStatePtr gs ATTRIBUTE_UNUSED) -{ -} - -/** - * xmlGetGlobalState: - * - * DEPRECATED - * - * Returns NULL. - */ -xmlGlobalStatePtr -xmlGetGlobalState(void) -{ - return(NULL); -} - -/** - * xmlIsMainThread: - * - * DEPRECATED: Internal function, do not use. - * - * Check whether the current thread is the main thread. - * - * Returns 1 if the current thread is the main thread, 0 otherwise - */ -int -xmlIsMainThread(void) { - return(0); -} - static void xmlInitGlobalState(xmlGlobalStatePtr gs) { gs->localRngState[0] = xmlGlobalRandom(); diff --git a/include/libxml/globals.h b/include/libxml/globals.h index 92f41312..a5db8026 100644 --- a/include/libxml/globals.h +++ b/include/libxml/globals.h @@ -22,20 +22,4 @@ #include #include -#ifdef __cplusplus -extern "C" { -#endif - -typedef struct _xmlGlobalState xmlGlobalState; -typedef xmlGlobalState *xmlGlobalStatePtr; - -XML_DEPRECATED XMLPUBFUN void -xmlInitializeGlobalState(xmlGlobalStatePtr gs); -XML_DEPRECATED XMLPUBFUN -xmlGlobalStatePtr xmlGetGlobalState(void); - -#ifdef __cplusplus -} -#endif - #endif /* __XML_GLOBALS_H */ diff --git a/include/libxml/threads.h b/include/libxml/threads.h index 8f4b6e17..ec2b16b1 100644 --- a/include/libxml/threads.h +++ b/include/libxml/threads.h @@ -61,12 +61,6 @@ XMLPUBFUN void XMLPUBFUN void xmlUnlockLibrary(void); XML_DEPRECATED -XMLPUBFUN int - xmlGetThreadId (void); -XML_DEPRECATED -XMLPUBFUN int - xmlIsMainThread (void); -XML_DEPRECATED XMLPUBFUN void xmlCleanupThreads(void); diff --git a/python/libxml_wrap.h b/python/libxml_wrap.h index a949b2b5..0aaddc09 100644 --- a/python/libxml_wrap.h +++ b/python/libxml_wrap.h @@ -16,7 +16,6 @@ #include #include #include -#include #include #ifdef LIBXML_RELAXNG_ENABLED #include diff --git a/threads.c b/threads.c index 96710726..b36b31f2 100644 --- a/threads.c +++ b/threads.c @@ -301,35 +301,6 @@ xmlRMutexUnlock(xmlRMutexPtr tok ATTRIBUTE_UNUSED) * * ************************************************************************/ -/** - * xmlGetThreadId: - * - * DEPRECATED: Internal function, do not use. - * - * xmlGetThreadId() find the current thread ID number - * Note that this is likely to be broken on some platforms using pthreads - * as the specification doesn't mandate pthread_t to be an integer type - * - * Returns the current thread ID number - */ -int -xmlGetThreadId(void) -{ -#ifdef HAVE_POSIX_THREADS - pthread_t id; - int ret; - - id = pthread_self(); - /* horrible but preserves compat, see warning above */ - memcpy(&ret, &id, sizeof(ret)); - return (ret); -#elif defined HAVE_WIN32_THREADS - return GetCurrentThreadId(); -#else - return ((int) 0); -#endif -} - /** * xmlLockLibrary: *