Skip to content

Commit 9b369aa

Browse files
committed
Remove unused headers from common.h
1 parent 9554380 commit 9b369aa

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/common.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,11 @@
44
#include <vector>
55
#include <set>
66
#include <string>
7-
#include <cmath>
87
#include <algorithm>
9-
#include <cstring>
10-
#include <iostream>
118
#include <utility>
129
#include <cassert>
1310
#include <thread>
1411

15-
#include <napi.h>
16-
1712
using namespace std;
1813

1914
static const auto kMaxThreads = std::thread::hardware_concurrency();

src/scorer.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#ifndef Fuzzaldrin_scorer_h_
22
#define Fuzzaldrin_scorer_h_
33

4+
#include <cmath>
5+
#include <iostream> // cerr
6+
47
#include "common.h"
58
#include "options.h"
69

@@ -206,7 +209,7 @@ Score scoreConsecutives(const CandidateString &subject, const CandidateString &s
206209
// TODO do we need this check?
207210
if (!(j < query_size) || !(i <= subject_size)) {
208211
cerr << "\n out of bounds! \n j, query_size, i, subject_size \n"
209-
<< j << query_size << i << subject_size << endl;
212+
<< j << query_size << i << subject_size << '\n';
210213
std::abort();
211214
}
212215

0 commit comments

Comments
 (0)