From 0e71e5a7545957c764e03bd26bf911dd79e22418 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sat, 6 Oct 2018 09:34:17 +0200 Subject: [PATCH] lstmtraining: Remove dead code for purified model name The purified model name `model_output` was unused, so remove the comment and the unused code. Signed-off-by: Stefan Weil --- src/training/lstmtraining.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/training/lstmtraining.cpp b/src/training/lstmtraining.cpp index cd4e1de0..707a6b90 100644 --- a/src/training/lstmtraining.cpp +++ b/src/training/lstmtraining.cpp @@ -73,7 +73,6 @@ const int kNumPagesPerBatch = 100; int main(int argc, char **argv) { tesseract::CheckSharedLibraryVersion(); ParseArguments(&argc, &argv); - // Purify the model name in case it is based on the network string. if (FLAGS_model_output.empty()) { tprintf("Must provide a --model_output!\n"); return EXIT_FAILURE; @@ -82,13 +81,6 @@ int main(int argc, char **argv) { tprintf("Must provide a --traineddata see training wiki\n"); return EXIT_FAILURE; } - STRING model_output = FLAGS_model_output.c_str(); - for (int i = 0; i < model_output.length(); ++i) { - if (model_output[i] == '[' || model_output[i] == ']') - model_output[i] = '-'; - if (model_output[i] == '(' || model_output[i] == ')') - model_output[i] = '_'; - } // Check write permissions. STRING test_file = FLAGS_model_output.c_str();