@@ -44,11 +44,9 @@ int pir_state::CheckAlignment(std::istream *origin) {
44
44
if (line[0 ] == ' >' )
45
45
if (line[3 ] == ' ;' )
46
46
{
47
- // delete [] line;
48
47
return 2 ;
49
48
}
50
49
}
51
- // delete[] line;
52
50
return 0 ;
53
51
}
54
52
@@ -65,11 +63,6 @@ Alignment *pir_state::LoadAlignment(std::istream &file) {
65
63
/* Compute how many sequences are in the input alignment */
66
64
alig->numberOfSequences = 0 ;
67
65
while (!file.eof ()) {
68
-
69
- /* Deallocate previously used dinamic memory */
70
- // if (line != nullptr)
71
- // delete[] line;
72
-
73
66
/* Read lines in a safe way */
74
67
line = utils::readLine (file, buffer);
75
68
if (line == nullptr )
@@ -101,10 +94,6 @@ Alignment *pir_state::LoadAlignment(std::istream &file) {
101
94
102
95
/* Read the entire input file */
103
96
while (!file.eof ()) {
104
-
105
- /* Deallocate local memory */
106
- // delete[] line;
107
-
108
97
/* Read lines in a safe way */
109
98
line = utils::readLine (file, buffer);
110
99
if (line == nullptr )
@@ -154,9 +143,6 @@ Alignment *pir_state::LoadAlignment(std::istream &file) {
154
143
}
155
144
}
156
145
157
- /* Deallocate dinamic memory */
158
- // delete[] line;
159
-
160
146
/* Check the matrix's content */
161
147
alig->fillMatrices (true );
162
148
alig->originalNumberOfSequences = alig->numberOfSequences ;
@@ -240,4 +226,4 @@ bool pir_state::RecognizeOutputFormat(const std::string &FormatName) {
240
226
FormatName == " PIR" || FormatName == " NBRF" ;
241
227
}
242
228
243
- }
229
+ }
0 commit comments