Skip to content

Commit bd96e23

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

2 files changed

Lines changed: 4 additions & 10 deletions

File tree

src/common.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
11
#ifndef Fuzzaldrin_common_h_
22
#define Fuzzaldrin_common_h_
33

4-
#include <vector>
54
#include <set>
6-
#include <string>
7-
#include <cmath>
8-
#include <algorithm>
9-
#include <cstring>
10-
#include <iostream>
11-
#include <utility>
125
#include <cassert>
136
#include <thread>
147

15-
#include <napi.h>
16-
178
using namespace std;
189

1910
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)