Skip to content

Commit 970c6bf

Browse files
committed
Simplify: Iterating zero times gives same result
1 parent 179e2a7 commit 970c6bf

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/randstrobes.cpp

-10
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,6 @@ Randstrobe RandstrobeIterator::get(unsigned int strobe1_index) const {
169169
uint64_t min_val = std::numeric_limits<uint64_t>::max();
170170
Syncmer strobe2 = strobe1;
171171

172-
if (syncmers.size() < w_start) {
173-
return make_randstrobe(strobe1, strobe1, aux_len);
174-
}
175-
176172
for (auto i = w_start; i <= w_end && syncmers[i].position <= max_position; i++) {
177173
assert(i < syncmers.size());
178174

@@ -201,12 +197,6 @@ Randstrobe RandstrobeGenerator::next() {
201197
return RandstrobeGenerator::end();
202198
}
203199
auto strobe1 = syncmers[0];
204-
205-
if (syncmers.size() < w_min) {
206-
auto randstrobe = make_randstrobe(strobe1, strobe1, aux_len);
207-
syncmers.pop_front();
208-
return randstrobe;
209-
}
210200
auto max_position = strobe1.position + max_dist;
211201
uint64_t min_val = std::numeric_limits<uint64_t>::max();
212202
Syncmer strobe2 = strobe1; // Default if no nearby syncmer

0 commit comments

Comments
 (0)