Commit 4e85549a authored by Mikael Salson's avatar Mikael Salson

Fasta: Remove unused 'out' constructor parameter

parent c78dd84c
......@@ -53,8 +53,6 @@ int main(int argc, char* argv[])
const char* fdata;
ostringstream ost;
ostream * p;
p=&ost;
char filename[] = "VidjilAlignXXXXXX";
JsonList result;
bool error = false;
......@@ -78,11 +76,10 @@ int main(int argc, char* argv[])
}else{
cgi_mode=false;
fdata = argv[1];
p=&cout;
}
if (!cgi_mode) cout <<ost<<endl;
Fasta fa(fdata, 1, " ", *p);
Fasta fa(fdata, 1, " ");
string seq0 = fa.sequence(0);
......
......@@ -39,8 +39,7 @@ Fasta::Fasta(int extract_field, string extract_separator)
}
Fasta::Fasta(const string &input,
int extract_field, string extract_separator,
ostream &out)
int extract_field, string extract_separator)
{
init(extract_field, extract_separator);
......
......@@ -45,8 +45,7 @@ public:
*
*/
Fasta(const string &input,
int extract_field=0, string extract_separator="|",
ostream &out=cout);
int extract_field=0, string extract_separator="|");
int size() const;
/**
......
......@@ -28,9 +28,9 @@ Germline::Germline(string _code, char _shortcut,
f_reps_4.push_back(f_rep_4);
f_reps_3.push_back(f_rep_3);
rep_5 = Fasta(f_rep_5, 2, "|", cout);
rep_4 = Fasta(f_rep_4, 2, "|", cout);
rep_3 = Fasta(f_rep_3, 2, "|", cout);
rep_5 = Fasta(f_rep_5, 2, "|");
rep_4 = Fasta(f_rep_4, 2, "|");
rep_3 = Fasta(f_rep_3, 2, "|");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment