From 49bc6f6aa66e975b91355c1cb23e45cdf15061a6 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sat, 24 Mar 2018 12:07:41 +0100 Subject: [PATCH] Remove unused local variable max_num_strokes This fixes a compiler warning. The variable is unused since commit 0e95e2ca874745c2682d281a7357efc4ea182002. Remove also a related code comment. Signed-off-by: Stefan Weil --- ccutil/unicharcompress.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ccutil/unicharcompress.cpp b/ccutil/unicharcompress.cpp index 69df89f3f4..9cb0a4d1c0 100644 --- a/ccutil/unicharcompress.cpp +++ b/ccutil/unicharcompress.cpp @@ -125,7 +125,6 @@ bool UnicharCompress::ComputeEncoding(const UNICHARSET& unicharset, int null_id, // to measure the number of radicals and strokes, initially we use the same // code range for all 3 Han code positions, and fix them after. int han_offset = hangul_offset + kTotalJamos; - int max_num_strokes = -1; for (int u = 0; u <= unicharset.size(); ++u) { // We special-case allow null_id to be equal to unicharset.size() in case // there is no space in unicharset for it. @@ -197,9 +196,6 @@ bool UnicharCompress::ComputeEncoding(const UNICHARSET& unicharset, int null_id, } // Now renumber Han to make all codes unique. We already added han_offset to // all Han. Now separate out the radical, stroke, and count codes for Han. - // In the uniqued Han encoding, the 1st code uses the next radical_map.size() - // values, the 2nd code uses the next max_num_strokes+1 values, and the 3rd - // code uses the rest for the max number of duplicated radical/stroke combos. int code_offset = 0; for (int i = 0; i < RecodedCharID::kMaxCodeLen; ++i) { int max_offset = 0;