Skip to content

Commit

Permalink
ICU-22721 Comment out variables only used in commented out code.
Browse files Browse the repository at this point in the history
  • Loading branch information
roubert authored and FrankYFTang committed Apr 29, 2024
1 parent ec57da8 commit 8b84ae1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions icu4c/source/test/perf/leperf/cmaps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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:
Expand All @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion icu4c/source/test/perf/leperf/leperf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8b84ae1

Please sign in to comment.