Skip to content

Commit f17b8d7

Browse files
committed
chore: remove excess namespace
1 parent 063bf1e commit f17b8d7

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

src/filter.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include <thread>
55
#include <limits>
66

7-
namespace {
87

98
struct CandidateScore {
109
// TODO non const
@@ -66,8 +65,6 @@ const std::vector<CandidateIndex> sort_priority_queue(CandidateScorePriorityQueu
6665
return ret;
6766
}
6867

69-
}// namespace
70-
7168
const std::vector<CandidateIndex> filter(const vector<std::vector<CandidateString>> &candidates, const Element &query, const Options &options) {
7269
CandidateScorePriorityQueue top_k;
7370
auto max_results = options.max_results;

src/path_scorer.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
#include "common.h"
22

3-
namespace {
4-
53
// Directory depth at which the full path influence is halved.
64
constexpr size_t tau_depth = 20;
75

86
// Full path is also penalized for length of basename. This adjust a scale factor for that penalty.
97
constexpr Score file_coeff = 2.5;
108

11-
};// namespace
12-
13-
149
extern Score scorePath(const CandidateString &subject, const CandidateString &subject_lw, Score fullPathScore, const Options &options);
1510

1611
extern Score getExtensionScore(const CandidateString &candidate, const CandidateString &ext, const int startPos, const int endPos, const int maxDepth);

src/scorer.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
// score: Find string similarity using a Smith Waterman algorithm
88
// Modified to account for programing scenarios (CamelCase folder/file.ext object.property)
99

10-
namespace {
11-
1210
// Base point for a single character match
1311
// This balance making patterns VS position and size penalty.
1412
constexpr int wm = 150;
@@ -28,8 +26,6 @@ constexpr Score tau_size = 150;
2826
// This has a direct influence on worst case scenario benchmark.
2927
constexpr float miss_coeff = 0.75;// Max number missed consecutive hit = ceil(miss_coeff*query.length) + 5
3028

31-
}// namespace
32-
3329
extern bool isWordEnd(const size_t pos, const CandidateString &subject, const CandidateString &subject_lw, const size_t len);
3430
extern bool isSeparator(const char c) noexcept;
3531
extern Score scoreExact(const size_t n, const size_t m, const size_t quality, const Score pos);

0 commit comments

Comments
 (0)