deleted un needed function

This commit is contained in:
Zanz2 2018-01-26 11:05:19 +01:00
parent 4ee51959eb
commit a48fc168a9

View file

@ -294,7 +294,7 @@ module ProtocolsIoHelper
step_counter = 0
step_order[step_counter] = base_step
step_counter += 1
until correct_order_guid_check(step_order, number_of_steps)
while step_order.length != number_of_steps
step_order[step_counter] =
unordered_step_json.find do |step|
step['previous_guid'] == base_step['guid']
@ -305,11 +305,6 @@ module ProtocolsIoHelper
step_order
end
def correct_order_guid_check(step_array, max)
return false if step_array.length != max
true
end
def protocols_io_fill_step(original_json, newj)
# newj = new json
# (simple to map) id 1= step description, id 6= section (title),