Skip to content

Commit 5028748

Browse files
committed
Fix -Wunused-but-set-variable
1 parent 2bd8699 commit 5028748

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/api/BamAlignment.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,6 @@ void BamAlignment::RemoveTag(const std::string& tag)
870870
char* pOriginalTagData = (char*)TagData.data();
871871
char* pTagData = pOriginalTagData;
872872
const unsigned int originalTagDataLength = TagData.size();
873-
unsigned int newTagDataLength = 0;
874873
unsigned int numBytesParsed = 0;
875874

876875
// skip if tag not found
@@ -885,7 +884,6 @@ void BamAlignment::RemoveTag(const std::string& tag)
885884
pTagData -= 3;
886885
numBytesParsed -= 3;
887886
const unsigned int beginningTagDataLength = numBytesParsed;
888-
newTagDataLength += beginningTagDataLength;
889887
std::memcpy(newTagData.Buffer, pOriginalTagData, numBytesParsed);
890888

891889
// attemp to skip to next tag

src/utils/bamtools_fasta.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ bool Fasta::FastaPrivate::CreateIndex(const std::string& indexFilename)
175175
}
176176

177177
// iterate through fasta entries
178-
int currentId = 0;
179178
std::string header;
180179
std::string sequence;
181180
while (GetNextHeader(header)) {
@@ -207,9 +206,6 @@ bool Fasta::FastaPrivate::CreateIndex(const std::string& indexFilename)
207206

208207
// store index entry
209208
Index.push_back(data);
210-
211-
// update ref Id
212-
++currentId;
213209
}
214210

215211
// open index file

0 commit comments

Comments
 (0)