From 2d30b545d13dacd5877b35d41d3de4ea6c8dd4e1 Mon Sep 17 00:00:00 2001 From: Simon Giraudot Date: Mon, 8 Jan 2018 09:58:55 +0100 Subject: [PATCH] Fix warning: unused variable --- .../Classification/example_ethz_random_forest.cpp | 12 +----------- .../Classification/example_opencv_random_forest.cpp | 12 +----------- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/Classification/examples/Classification/example_ethz_random_forest.cpp b/Classification/examples/Classification/example_ethz_random_forest.cpp index 423056b12e8..961c63b41ac 100644 --- a/Classification/examples/Classification/example_ethz_random_forest.cpp +++ b/Classification/examples/Classification/example_ethz_random_forest.cpp @@ -32,19 +32,9 @@ typedef Classification::Point_set_feature_generator int main (int argc, char** argv) { std::string filename = "data/b9_training.ply"; - bool use_opencv = false; if (argc > 1) - { - if (std::string(argv[1]) == "-cv") - { - use_opencv = true; - if (argc > 2) - filename = argv[2]; - } - else - filename = argv[1]; - } + filename = argv[1]; std::ifstream in (filename.c_str(), std::ios::binary); Point_set pts; diff --git a/Classification/examples/Classification/example_opencv_random_forest.cpp b/Classification/examples/Classification/example_opencv_random_forest.cpp index f14eb20b303..3f8971389e3 100644 --- a/Classification/examples/Classification/example_opencv_random_forest.cpp +++ b/Classification/examples/Classification/example_opencv_random_forest.cpp @@ -32,19 +32,9 @@ typedef Classification::Point_set_feature_generator int main (int argc, char** argv) { std::string filename = "data/b9_training.ply"; - bool use_opencv = false; if (argc > 1) - { - if (std::string(argv[1]) == "-cv") - { - use_opencv = true; - if (argc > 2) - filename = argv[2]; - } - else - filename = argv[1]; - } + filename = argv[1]; std::ifstream in (filename.c_str(), std::ios::binary); Point_set pts;