Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
c78dd84c
Commit
c78dd84c
authored
Nov 05, 2014
by
Mikaël Salson
Browse files
OnlineFasta: Useless copy constructor and operator= removed
parent
e58c4b0e
Changes
2
Hide whitespace changes
Inline
Side-by-side
algo/core/fasta.cpp
View file @
c78dd84c
...
...
@@ -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
))
{
...
...
algo/core/fasta.h
View file @
c78dd84c
...
...
@@ -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:
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment