ICU-22721 Comment out variables only used in commented out code.

This commit is contained in:
Fredrik Roubert 2024-04-24 19:34:52 +02:00 committed by Frank Yung-Fong Tang
parent ec57da8651
commit 8b84ae1dda
2 changed files with 10 additions and 10 deletions

View file

@ -63,10 +63,10 @@ CMAPMapper *CMAPMapper::createUnicodeMapper(const CMAPTable *cmap)
le_uint16 nSubtables = SWAPW(cmap->numberSubtables);
const CMAPEncodingSubtable *subtable = nullptr;
le_bool found = false;
le_uint16 foundPlatformID = 0xFFFF;
le_uint16 foundPlatformSpecificID = 0xFFFF;
//le_uint16 foundPlatformID = 0xFFFF;
//le_uint16 foundPlatformSpecificID = 0xFFFF;
le_uint32 foundOffset = 0;
le_uint16 foundTable = 0xFFFF;
//le_uint16 foundTable = 0xFFFF;
// first pass, look for MS table. (preferred?)
for (i = 0; i < nSubtables && !found; i += 1) {
const CMAPEncodingSubtableHeader *esh = &cmap->encodingSubtableHeaders[i];
@ -78,10 +78,10 @@ CMAPMapper *CMAPMapper::createUnicodeMapper(const CMAPTable *cmap)
case 1: // Unicode BMP (UCS-2)
case 10: // Unicode UCS-4
foundOffset = SWAPL(esh->encodingOffset);
foundPlatformID = platformID;
foundPlatformSpecificID = platformSpecificID;
//foundPlatformID = platformID;
//foundPlatformSpecificID = platformSpecificID;
found = true;
foundTable = i;
//foundTable = i;
break;
//default:
@ -107,9 +107,9 @@ CMAPMapper *CMAPMapper::createUnicodeMapper(const CMAPTable *cmap)
case 2:
case 3:
foundOffset = SWAPL(esh->encodingOffset);
foundPlatformID = platformID;
foundPlatformSpecificID = platformSpecificID;
foundTable = i;
//foundPlatformID = platformID;
//foundPlatformSpecificID = platformSpecificID;
//foundTable = i;
found = true;
break;

View file

@ -73,7 +73,7 @@ int main(int argc, const char *argv[]) {
}
}
u_printf("leperf: Testing %s for %.fs...\n", U_ICU_VERSION, len);
LEErrorCode status = LE_NO_ERROR;
//LEErrorCode status = LE_NO_ERROR;
//uloc_setDefault("en_US", &status);
Params p;