Unused variables removed

This commit is contained in:
2018-04-26 00:19:01 +03:00
parent 965ddbfedc
commit 309b4a1b81

View File

@@ -331,13 +331,9 @@ bool is_bad_class(
return false;
}
vector <FiniteFunction<CUR_BASE>> possible_functions;
size_t total_possible_functions;
atomic<long> current_function;
atomic<long> completed_tasks;
mutex possible_functions_mutex;
list< set<FiniteFunction<CUR_BASE>> > 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<decltype(shared_function_classes)::iterator> 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();