Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 506c7dd3 authored by David Parsons's avatar David Parsons
Browse files

remove stale Dna_7 ctor

parent b981e64f
No related branches found
No related tags found
No related merge requests found
......@@ -48,21 +48,6 @@ Dna_7::Dna_7(Dna* dna, Individual_7 * indiv, DnaFactory * dna_factory) {
dna_factory_ = dna_factory;
}
Dna_7::Dna_7(Dna* dna, DnaFactory * dna_factory) {
length_ = dna->length();
nb_blocks_ = nb_required_blocks(length_);
posix_memalign((void **)&data_, 64,
nb_blocks_ * BLOCK_SIZE *
sizeof(char)); //new char[nb_blocks_ * BLOCK_SIZE];
memset(data_, 0, (length_ + 1) * sizeof(char));
memcpy(data_, dna->data(), (length_ + 1) * sizeof(char));
parent_length_ = dna->length();
dna_factory_ = dna_factory;
}
Dna_7::Dna_7(Dna_7 * dna, Individual_7 * indiv, DnaFactory * dna_factory) {
length_ = dna->length_;
......
......@@ -52,7 +52,6 @@ class Dna_7 {
public:
Dna_7(Dna* dna, Individual_7* indiv, DnaFactory* dna_factory);
Dna_7(Dna_7* dna, Individual_7* indiv, DnaFactory* dna_factory);
Dna_7(Dna* dna, DnaFactory* dna_factory);
Dna_7(int length, DnaFactory* dna_factory);
~Dna_7();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment