mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-12 16:14:58 +08:00
deleted un needed function
This commit is contained in:
parent
4ee51959eb
commit
a48fc168a9
1 changed files with 1 additions and 6 deletions
|
@ -294,7 +294,7 @@ module ProtocolsIoHelper
|
||||||
step_counter = 0
|
step_counter = 0
|
||||||
step_order[step_counter] = base_step
|
step_order[step_counter] = base_step
|
||||||
step_counter += 1
|
step_counter += 1
|
||||||
until correct_order_guid_check(step_order, number_of_steps)
|
while step_order.length != number_of_steps
|
||||||
step_order[step_counter] =
|
step_order[step_counter] =
|
||||||
unordered_step_json.find do |step|
|
unordered_step_json.find do |step|
|
||||||
step['previous_guid'] == base_step['guid']
|
step['previous_guid'] == base_step['guid']
|
||||||
|
@ -305,11 +305,6 @@ module ProtocolsIoHelper
|
||||||
step_order
|
step_order
|
||||||
end
|
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)
|
def protocols_io_fill_step(original_json, newj)
|
||||||
# newj = new json
|
# newj = new json
|
||||||
# (simple to map) id 1= step description, id 6= section (title),
|
# (simple to map) id 1= step description, id 6= section (title),
|
||||||
|
|
Loading…
Add table
Reference in a new issue