Skip to content

Commit f6892a9

Browse files
committed
Remove outdated comment lines from parser code
1 parent e6990ef commit f6892a9

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

source/FormatHandling/mega_interleaved_state.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ int mega_interleaved_state::CheckAlignment(std::istream* origin)
8080
/* MEGA Sequential (22) or Interleaved (21) */
8181
return (!blocks) ? 0 : 1;
8282
}
83-
// delete[] line;
8483
return 0;
8584
}
8685

@@ -193,7 +192,6 @@ Alignment* mega_interleaved_state::LoadAlignment(std::istream& file)
193192

194193
if (!strncmp(line, "!", 1)) {
195194
/* Deallocate memory and read a new line */
196-
// delete [] line;
197195
line = utils::readLine(file, buffer);
198196
continue;
199197
}
@@ -244,4 +242,4 @@ bool mega_interleaved_state::RecognizeOutputFormat(const std::string &FormatName
244242
{
245243
return false;
246244
}
247-
}
245+
}

source/FormatHandling/pir_state.cpp

+1-15
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,9 @@ int pir_state::CheckAlignment(std::istream *origin) {
4444
if (line[0] == '>')
4545
if (line[3] == ';')
4646
{
47-
// delete [] line;
4847
return 2;
4948
}
5049
}
51-
// delete[] line;
5250
return 0;
5351
}
5452

@@ -65,11 +63,6 @@ Alignment *pir_state::LoadAlignment(std::istream &file) {
6563
/* Compute how many sequences are in the input alignment */
6664
alig->numberOfSequences = 0;
6765
while (!file.eof()) {
68-
69-
/* Deallocate previously used dinamic memory */
70-
// if (line != nullptr)
71-
// delete[] line;
72-
7366
/* Read lines in a safe way */
7467
line = utils::readLine(file, buffer);
7568
if (line == nullptr)
@@ -101,10 +94,6 @@ Alignment *pir_state::LoadAlignment(std::istream &file) {
10194

10295
/* Read the entire input file */
10396
while (!file.eof()) {
104-
105-
/* Deallocate local memory */
106-
// delete[] line;
107-
10897
/* Read lines in a safe way */
10998
line = utils::readLine(file, buffer);
11099
if (line == nullptr)
@@ -154,9 +143,6 @@ Alignment *pir_state::LoadAlignment(std::istream &file) {
154143
}
155144
}
156145

157-
/* Deallocate dinamic memory */
158-
// delete[] line;
159-
160146
/* Check the matrix's content */
161147
alig->fillMatrices(true);
162148
alig->originalNumberOfSequences = alig->numberOfSequences;
@@ -240,4 +226,4 @@ bool pir_state::RecognizeOutputFormat(const std::string &FormatName) {
240226
FormatName == "PIR" || FormatName == "NBRF";
241227
}
242228

243-
}
229+
}

0 commit comments

Comments
 (0)