Skip to content

Commit

Permalink
delete dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
bolosky committed Jan 13, 2022
1 parent 6ad6163 commit 34c50ee
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions SNAPLib/FASTQ.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,21 +391,6 @@ PairedInterleavedFASTQReader::getNextReadPair(Read *read0, Read *read1)
}
bytesConsumed += FASTQReader::getReadFromBuffer(buffer + bytesConsumed, validBytes - bytesConsumed, read1, fileName, data, context);

#if 0 // We don't rely on this read ID format anymore since it's non-standard. We stopped using the seeking version of PairedInterleavedFATSQ reader for that reason.
//
// Validate the Read IDs.
//
if (read0->getIdLength() < 2 || memcmp(read0->getId() + read0->getIdLength() - 2, "/1", 2)) {
WriteErrorMessage("PairedInterleavedFASTQReader: first read of batch doesn't have ID ending with /1: '%.*s'\n", read0->getIdLength(), read0->getId());
soft_exit(1);
}

if (read1->getIdLength() < 2 || memcmp(read1->getId() + read1->getIdLength() - 2, "/2", 2)) {
WriteErrorMessage("PairedInterleavedFASTQReader: second read of batch doesn't have ID ending with /2: '%.*s'\n", read1->getIdLength(), read1->getId());
soft_exit(1);
}
#endif // 0

data->advance(bytesConsumed);
return true;
}
Expand Down

0 comments on commit 34c50ee

Please sign in to comment.