From 309b4a1b813d62e58ba3ab4cd5e85c7d1ebe0c11 Mon Sep 17 00:00:00 2001 From: Aleksey Lobanov Date: Thu, 26 Apr 2018 00:19:01 +0300 Subject: [PATCH] Unused variables removed --- main.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/main.cpp b/main.cpp index 0e172c2..ab05e92 100644 --- a/main.cpp +++ b/main.cpp @@ -331,13 +331,9 @@ bool is_bad_class( return false; } -vector > possible_functions; size_t total_possible_functions; -atomic current_function; - atomic completed_tasks; -mutex possible_functions_mutex; list< set> > shared_function_classes; mutex shared_functions_mutex; @@ -403,6 +399,7 @@ void process_task_lists() { if ( is_bad_class(task.current, bad_functions) ) { //cout << "bad class" << endl; ++completed_tasks; + print_progress(completed_tasks, total_possible_functions); } else { ++task.current_max_coeff; task_mutex.lock(); @@ -413,6 +410,7 @@ void process_task_lists() { } else { //cout << "task finished, appending" << endl; ++completed_tasks; + print_progress(completed_tasks, total_possible_functions); auto func_class = task.current; bool is_need_append = true; vector functions_to_remove; @@ -494,13 +492,7 @@ int main() { allowed_functions.erase(identical_x); allowed_functions.erase(identical_y); - cout << "Total allowed " << allowed_functions.size() << " functions" << endl; - copy( - allowed_functions.begin(), - allowed_functions.end(), - back_inserter(possible_functions) - ); completed_tasks = 0; for (auto&& func: allowed_functions) { FunctionTask task; @@ -510,7 +502,7 @@ int main() { task_list.push_back(task); } - cout << "Total funcs in list" << task_list.size() << " functions" << endl; + cout << "Total funcs in list " << task_list.size() << " functions" << endl; total_possible_functions = task_list.size();