Disable incomplete code

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2021-10-10 20:05:06 +02:00
parent 842cca1d49
commit 988102c41d

View File

@ -439,13 +439,14 @@ void RecodeBeamSearch::extractSymbolChoices(const UNICHARSET *unicharset) {
bestPos = i; bestPos = i;
} }
} }
// TODO: bestCode is currently unused (see commit 2dd5d0d60). #if 0 // TODO: bestCode is currently unused (see commit 2dd5d0d60).
int bestCode = -10; int bestCode = -10;
for (auto &node : best_nodes) { for (auto &node : best_nodes) {
if (node->unichar_id == unichar_ids[bestPos]) { if (node->unichar_id == unichar_ids[bestPos]) {
bestCode = node->code; bestCode = node->code;
} }
} }
#endif
// Exclude the best choice for the followup decoding. // Exclude the best choice for the followup decoding.
std::unordered_set<int> excludeCodeList; std::unordered_set<int> excludeCodeList;
for (auto &best_node : best_nodes) { for (auto &best_node : best_nodes) {