From bd96e23960ce9afb058a760c11be854c530ca612 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabaadi Date: Tue, 22 Dec 2020 01:44:36 -0600 Subject: [PATCH] Remove unused headers from common.h --- src/common.h | 9 --------- src/scorer.h | 5 ++++- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/common.h b/src/common.h index a5733b0f..3bf2491d 100644 --- a/src/common.h +++ b/src/common.h @@ -1,19 +1,10 @@ #ifndef Fuzzaldrin_common_h_ #define Fuzzaldrin_common_h_ -#include #include -#include -#include -#include -#include -#include -#include #include #include -#include - using namespace std; static const auto kMaxThreads = std::thread::hardware_concurrency(); diff --git a/src/scorer.h b/src/scorer.h index 80b5a0b4..dc9b8051 100644 --- a/src/scorer.h +++ b/src/scorer.h @@ -1,6 +1,9 @@ #ifndef Fuzzaldrin_scorer_h_ #define Fuzzaldrin_scorer_h_ +#include +#include // cerr + #include "common.h" #include "options.h" @@ -206,7 +209,7 @@ Score scoreConsecutives(const CandidateString &subject, const CandidateString &s // TODO do we need this check? if (!(j < query_size) || !(i <= subject_size)) { cerr << "\n out of bounds! \n j, query_size, i, subject_size \n" - << j << query_size << i << subject_size << endl; + << j << query_size << i << subject_size << '\n'; std::abort(); }