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 9b369aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 0 additions & 5 deletions src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,11 @@
#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 9b369aa

Please sign in to comment.