Skip to content

Commit

Permalink
Removes erroneous deletes in Chromosome constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathonl committed Sep 20, 2018
1 parent 198a43e commit 3a10afe
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions general/Chromosome.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ Chromosome::Chromosome(GenomeSequence* gs, const char* chromosomeName)
Chromosome::Chromosome(const char* genomseSequenceFileName, unsigned int chromosomeIndex, bool isColorSpace)
{
std::string s(genomseSequenceFileName);
if (this->gs) delete gs;
gs = new GenomeSequence;
assert(gs);
gs->setReferenceName(s);
Expand All @@ -39,7 +38,6 @@ Chromosome::Chromosome(const char* genomseSequenceFileName, unsigned int chromos

Chromosome::Chromosome(const std::string& genomseSequenceFileName, unsigned int chromosomeIndex, bool isColorSpace)
{
if (this->gs) delete gs;
gs = new GenomeSequence;
assert(gs);
gs->setReferenceName(genomseSequenceFileName);
Expand Down

0 comments on commit 3a10afe

Please sign in to comment.