diff options
author | Brian Cully <bjc@kublai.com> | 2021-02-19 16:21:22 -0500 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2021-02-19 16:21:22 -0500 |
commit | bdf1d88883256c0d2731600d604af22d27d8ee7f (patch) | |
tree | a5bbd5a2c99106111aee6defc1a5eaf00fef417d /genome-list.mjs | |
parent | 4ead5e928b49e78e2071f7486530359acdab0bcc (diff) | |
download | molsim2-bdf1d88883256c0d2731600d604af22d27d8ee7f.tar.gz molsim2-bdf1d88883256c0d2731600d604af22d27d8ee7f.zip |
Remove penultimate genome slot
I need the last "good" genome, not the second to last one, so instead
thread the original genome (before any mutations) through the required
states so it can be reverted to if a lethal change is made.
Diffstat (limited to 'genome-list.mjs')
-rw-r--r-- | genome-list.mjs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/genome-list.mjs b/genome-list.mjs index c057d34..8969a8c 100644 --- a/genome-list.mjs +++ b/genome-list.mjs @@ -18,14 +18,6 @@ class GenomeList { return undefined } } - - get penultimate() { - if (this.genomes.length > 1) { - return this.genomes[this.genomes.length - 2] - } else { - return undefined - } - } } export default GenomeList |