]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/uinit.c
ICU-491.11.1.tar.gz
[apple/icu.git] / icuSources / common / uinit.c
index 530d21307ec7f6b6110dffd9242ee7c3a4b99e22..bdbf9102e3bf41ead2f95f59cafb291f252f0e0b 100644 (file)
@@ -1,7 +1,7 @@
 /*
 ******************************************************************************
 *                                                                            *
-* Copyright (C) 2001-2010, International Business Machines                   *
+* Copyright (C) 2001-2011, International Business Machines                   *
 *                Corporation and others. All Rights Reserved.                *
 *                                                                            *
 ******************************************************************************
 #include "unicode/uclean.h"
 #include "cmemory.h"
 #include "icuplugimp.h"
-#include "uassert.h"
 #include "ucln.h"
-#include "ucln_cmn.h"
 #include "ucnv_io.h"
 #include "umutex.h"
 #include "utracimp.h"
 
-static UBool gICUInitialized = FALSE;
-static UMTX  gICUInitMutex   = NULL;
-
-
-/************************************************
- The cleanup order is important in this function.
- Please be sure that you have read ucln.h
- ************************************************/
-U_CAPI void U_EXPORT2
-u_cleanup(void)
-{
-    UTRACE_ENTRY_OC(UTRACE_U_CLEANUP);
-    umtx_lock(NULL);     /* Force a memory barrier, so that we are sure to see   */
-    umtx_unlock(NULL);   /*   all state left around by any other threads.        */
-
-    ucln_lib_cleanup();
-
-    umtx_destroy(&gICUInitMutex);
-    umtx_cleanup();
-    cmemory_cleanup();       /* undo any heap functions set by u_setMemoryFunctions(). */
-    gICUInitialized = FALSE;
-    UTRACE_EXIT();           /* Must be before utrace_cleanup(), which turns off tracing. */
-/*#if U_ENABLE_TRACING*/
-    utrace_cleanup();
-/*#endif*/
-}
-
 /*
  * ICU Initialization Function. Need not be called.
  */