mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 15:42:14 +00:00
ICU-22721 Comment out variables only used in commented out code.
This commit is contained in:
parent
ec57da8651
commit
8b84ae1dda
2 changed files with 10 additions and 10 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue