From 65fa8b24a3e215ff28ed0577e70f803f5f7e98d9 Mon Sep 17 00:00:00 2001 From: Andy Heninger Date: Mon, 10 Jul 2006 05:34:42 +0000 Subject: [PATCH] ICU-4669 fix some compiler warnings. X-SVN-Rev: 19810 --- icu4c/source/common/utext.cpp | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/icu4c/source/common/utext.cpp b/icu4c/source/common/utext.cpp index decab4a9a6c..7cdb5e00e7c 100644 --- a/icu4c/source/common/utext.cpp +++ b/icu4c/source/common/utext.cpp @@ -681,29 +681,6 @@ utext_close(UText *ut) { -// -// resetChunk When an access fails for attempting to get text that is out-of-range -// this function puts the chunk into a benign state with the index at the -// at the requested position. -// -// If there is a pre-existing chunk that is adjacent to the index -// preserve the chunk, otherwise set up a dummy zero length chunk. -// -static void -resetChunk(UText *ut, int64_t index) { - if (index==ut->chunkNativeLimit) { - ut->chunkOffset = ut->chunkLength; - } else if (index==ut->chunkNativeStart) { - ut->chunkOffset = 0; - } else { - ut->chunkLength = 0; - ut->chunkNativeStart = index; - ut->chunkNativeLimit = index; - ut->chunkOffset = 0; - ut->nativeIndexingLimit = 0; - } -} - // // invalidateChunk Reset a chunk to have no contents, so that the next call @@ -1342,7 +1319,6 @@ fillReverse: // General case, handle everything non-ASCII. int32_t sIx = srcIx; // ix of last byte of multi-byte u8 char - int32_t dIx = destIx; // Get the full character from the UTF8 string. // use code derived from tbe macros in utf.8