Commit c78dd84c authored by Mikaël Salson's avatar Mikaël Salson

OnlineFasta: Useless copy constructor and operator= removed

parent e58c4b0e
......@@ -114,16 +114,6 @@ OnlineFasta::OnlineFasta(istream &input,
init();
}
OnlineFasta::OnlineFasta(const OnlineFasta &of) {
current = of.current;
input = of.input;
extract_field = of.extract_field;
extract_separator = of.extract_separator;
line = of.line;
input_allocated = false;
line_nb = of.line_nb;
}
OnlineFasta::~OnlineFasta() {
if (input_allocated)
delete input;
......@@ -218,15 +208,6 @@ void OnlineFasta::next() {
unexpectedEOF();
}
OnlineFasta& OnlineFasta::operator=(const OnlineFasta&of) {
current = of.current;
line = of.line;
input = of.input;
extract_field = of.extract_field;
extract_separator = of.extract_separator;
return *this;
}
string OnlineFasta::getInterestingLine() {
string line;
while (line.length() == 0 && hasNext() && getline(*input, line)) {
......
......@@ -98,11 +98,6 @@ class OnlineFasta {
OnlineFasta(istream &input,
int extract_field=0, string extract_separator="|");
/**
* Copy constructor
*/
OnlineFasta(const OnlineFasta &of);
~OnlineFasta();
/**
......@@ -127,8 +122,6 @@ class OnlineFasta {
*/
void next();
OnlineFasta& operator=(const OnlineFasta&);
private:
/**
......
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