Skip to content

Commit 3d55e65

Browse files
authored
Update Gep.jl
Del unused function
1 parent 7704dda commit 3d55e65

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/Gep.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,10 @@ function generate_gene(headsyms::Vector{Int8}, tailsyms::Vector{Int8}, headlen::
116116
return vcat(head, tail)
117117
end
118118

119-
function generate_preamle!(toolbox::Toolbox, preamble::Vector{Int8})
120-
if !isempty(toolbox.preamble_syms)
121-
append!(preamble, rand(toolbox.preamble_syms, toolbox.gene_count))
122-
end
123-
end
124119

125120
function generate_chromosome(toolbox::Toolbox)
126121
connectors = rand(toolbox.gene_connections, toolbox.gene_count - 1)
127122
preamble_sym = Int8[]
128-
generate_preamle!(toolbox, preamble_sym)
129123
genes = vcat([generate_gene(toolbox.headsyms, toolbox.tailsyms, toolbox.head_len; unarys=toolbox.unary_syms,
130124
unary_prob=toolbox.unary_prob) for _ in 1:toolbox.gene_count]...)
131125
return Chromosome(vcat(preamble_sym, connectors, genes), toolbox, true)

0 commit comments

Comments
 (0)