diff --git a/source/common/uchar.c b/source/common/uchar.c index 08a23deaa84..2ecf49590ab 100644 --- a/source/common/uchar.c +++ b/source/common/uchar.c @@ -5174,9 +5174,7 @@ u_charDigitValue(UChar ch) void createTables() { - Mutex* lock = NULL; CompactByteArray* newTables; - lock = NULL; if (tables == 0) { newTables = ucmp8_openAdopt((uint16_t*)indicies, (int8_t*)values, offsetCount); umtx_lock(NULL); @@ -5225,7 +5223,6 @@ createUlTables() void createDirTables() { - Mutex* lock=NULL; CompactByteArray* newTables; if (dirTables == 0) { diff --git a/source/common/ucnv.c b/source/common/ucnv.c index 655ecbc3fe8..fb4bab88a78 100644 --- a/source/common/ucnv.c +++ b/source/common/ucnv.c @@ -222,8 +222,6 @@ UConverter* ucnv_openCCSID (int32_t codepage, void ucnv_close (UConverter * converter) { - Mutex *updateReferenceCounterMutex = NULL; - if (converter == NULL) return; if ((converter->sharedData->conversionType == UCNV_ISO_2022) && @@ -248,7 +246,6 @@ int32_t ucnv_flushCache () UConverterSharedData *mySharedData = NULL; int32_t pos = -1; int32_t tableDeletedNum = 0; - Mutex *flushCacheMutex = NULL; /*if shared data hasn't even been lazy evaluated yet * return 0 diff --git a/source/common/ucnv_bld.c b/source/common/ucnv_bld.c index 95ea1ee2421..8e8b911fc31 100644 --- a/source/common/ucnv_bld.c +++ b/source/common/ucnv_bld.c @@ -414,7 +414,6 @@ int32_t uhash_hashSharedData (void *sharedData) /*Puts the shared data in the static hashtable SHARED_DATA_HASHTABLE */ void shareConverterData (UConverterSharedData * data) { - Mutex *sharedData = NULL; UErrorCode err = U_ZERO_ERROR; /*Lazy evaluates the Hashtable itself */ @@ -506,7 +505,6 @@ int32_t uhash_hashIString(const void* name) } bool_t isDataBasedConverter (const char *name) { - Mutex *createHashTableMutex = NULL; int32_t i = 0; bool_t result = FALSE; UErrorCode err = U_ZERO_ERROR; @@ -567,7 +565,6 @@ UConverter * char realName[UCNV_MAX_CONVERTER_NAME_LENGTH]; UConverter *myUConverter = NULL; UConverterSharedData *mySharedConverterData = NULL; - Mutex *updatingReferenceCounterMutex = NULL; if (U_FAILURE (*err)) return NULL; diff --git a/source/common/ucnv_io.c b/source/common/ucnv_io.c index 74d95e5d43a..e6bc397bd3e 100644 --- a/source/common/ucnv_io.c +++ b/source/common/ucnv_io.c @@ -144,7 +144,6 @@ void void doSetupAliasTableAndAvailableConverters (FileStream * converterFile, UErrorCode * err) { - Mutex *convertrsFileOpenMutex = NULL; char myLine[UCNV_MAX_LINE_TEXT]; char *line = myLine; char actualNameToken[UCNV_MAX_CONVERTER_NAME_LENGTH];