Skip to content

Commit

Permalink
Remove unused headers from common.h
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Dec 22, 2020
1 parent 9554380 commit bd96e23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
9 changes: 0 additions & 9 deletions src/common.h
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
#ifndef Fuzzaldrin_common_h_
#define Fuzzaldrin_common_h_

#include <vector>
#include <set>
#include <string>
#include <cmath>
#include <algorithm>
#include <cstring>
#include <iostream>
#include <utility>
#include <cassert>
#include <thread>

#include <napi.h>

using namespace std;

static const auto kMaxThreads = std::thread::hardware_concurrency();
Expand Down
5 changes: 4 additions & 1 deletion src/scorer.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#ifndef Fuzzaldrin_scorer_h_
#define Fuzzaldrin_scorer_h_

#include <cmath>
#include <iostream> // cerr

#include "common.h"
#include "options.h"

Expand Down Expand Up @@ -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();
}

Expand Down

0 comments on commit bd96e23

Please sign in to comment.