Skip to content

Commit

Permalink
fix weird commit issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bhaller committed Dec 8, 2024
1 parent 023771b commit 8ca450d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions core/chromosome.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,6 @@ class Chromosome : public EidosDictionaryRetained
std::vector<Haplosome *> haplosomes_junkyard_nonnull; // OWNED: non-null haplosomes go here when we're done with them, for reuse
std::vector<Haplosome *> haplosomes_junkyard_null; // OWNED: null haplosomes go here when we're done with them, for reuse

Haplosome *_NewHaplosome_NULL(Individual *p_individual); // internal use only
Haplosome *_NewHaplosome_NONNULL(Individual *p_individual); // internal use only
Haplosome *_NewHaplosome_NULL(Individual *p_individual); // internal use only; does not set chromosome_subposition_
Haplosome *_NewHaplosome_NONNULL(Individual *p_individual); // internal use only; does not set chromosome_subposition_

Expand Down Expand Up @@ -353,8 +351,6 @@ class Chromosome : public EidosDictionaryRetained

// Make a null haplosome, which is associated with an individual, but has no associated chromosome, or
// make a non-null haplosome, which is associated with an individual and has an associated chromosome
Haplosome *NewHaplosome_NULL(Individual *p_individual);
Haplosome *NewHaplosome_NONNULL(Individual *p_individual);
Haplosome *NewHaplosome_NULL(Individual *p_individual, uint8_t p_chromosome_subposition);
Haplosome *NewHaplosome_NONNULL(Individual *p_individual, uint8_t p_chromosome_subposition);
void FreeHaplosome(Haplosome *p_haplosome);
Expand Down Expand Up @@ -679,7 +675,6 @@ inline __attribute__((always_inline)) void Chromosome::DrawMutationAndBreakpoint
// defer this include until now, to resolve mutual dependencies
#include "haplosome.h"

inline __attribute__((always_inline)) Haplosome *Chromosome::NewHaplosome_NULL(Individual *p_individual)
inline __attribute__((always_inline)) Haplosome *Chromosome::NewHaplosome_NULL(Individual *p_individual, uint8_t p_chromosome_subposition)
{
if (haplosomes_junkyard_null.size())
Expand All @@ -693,13 +688,11 @@ inline __attribute__((always_inline)) Haplosome *Chromosome::NewHaplosome_NULL(I
return back;
}

return _NewHaplosome_NULL(p_individual);
Haplosome *hap = _NewHaplosome_NULL(p_individual);
hap->chromosome_subposition_ = p_chromosome_subposition;
return hap;
}

inline __attribute__((always_inline)) Haplosome *Chromosome::NewHaplosome_NONNULL(Individual *p_individual)
inline __attribute__((always_inline)) Haplosome *Chromosome::NewHaplosome_NONNULL(Individual *p_individual, uint8_t p_chromosome_subposition)
{
if (haplosomes_junkyard_nonnull.size())
Expand Down Expand Up @@ -752,7 +745,6 @@ inline __attribute__((always_inline)) Haplosome *Chromosome::NewHaplosome_NONNUL
return back;
}

return _NewHaplosome_NONNULL(p_individual);
Haplosome *hap = _NewHaplosome_NONNULL(p_individual);
hap->chromosome_subposition_ = p_chromosome_subposition;
return hap;
Expand Down

0 comments on commit 8ca450d

Please sign in to comment.