From 34c50ee0d511fe05258305b31af9ba2f1ae19001 Mon Sep 17 00:00:00 2001 From: Bill Bolosky Date: Thu, 13 Jan 2022 14:39:05 -0800 Subject: [PATCH] delete dead code --- SNAPLib/FASTQ.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/SNAPLib/FASTQ.cpp b/SNAPLib/FASTQ.cpp index 4fcc09c1..d0a069a4 100644 --- a/SNAPLib/FASTQ.cpp +++ b/SNAPLib/FASTQ.cpp @@ -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; }