Skip to content

Commit afcd4cb

Browse files
stweilzdenop
authored andcommitted
Remove unused local variable max_num_strokes (#1417)
This fixes a compiler warning. The variable is unused since commit 0e95e2c. Remove also a related code comment. Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent d087f20 commit afcd4cb

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ccutil/unicharcompress.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ bool UnicharCompress::ComputeEncoding(const UNICHARSET& unicharset, int null_id,
125125
// to measure the number of radicals and strokes, initially we use the same
126126
// code range for all 3 Han code positions, and fix them after.
127127
int han_offset = hangul_offset + kTotalJamos;
128-
int max_num_strokes = -1;
129128
for (int u = 0; u <= unicharset.size(); ++u) {
130129
// We special-case allow null_id to be equal to unicharset.size() in case
131130
// there is no space in unicharset for it.
@@ -197,9 +196,6 @@ bool UnicharCompress::ComputeEncoding(const UNICHARSET& unicharset, int null_id,
197196
}
198197
// Now renumber Han to make all codes unique. We already added han_offset to
199198
// all Han. Now separate out the radical, stroke, and count codes for Han.
200-
// In the uniqued Han encoding, the 1st code uses the next radical_map.size()
201-
// values, the 2nd code uses the next max_num_strokes+1 values, and the 3rd
202-
// code uses the rest for the max number of duplicated radical/stroke combos.
203199
int code_offset = 0;
204200
for (int i = 0; i < RecodedCharID::kMaxCodeLen; ++i) {
205201
int max_offset = 0;

0 commit comments

Comments
 (0)