Skip to content

Commit 4d78979

Browse files
committed
Removed unused method from experiment
1 parent eb1e7d5 commit 4d78979

1 file changed

Lines changed: 1 addition & 25 deletions

File tree

evaluationserver/app/models/experiment.rb

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,7 @@ def default_values
1010
self.id_hash ||= SecureRandom.uuid
1111
end
1212

13-
14-
def self.create_from_xml(xml_string)
15-
the_experiment = nil
16-
xml = Nokogiri::XML(xml_string)
17-
xml.xpath("//Experiment").each{|experiment|
18-
title = nil
19-
title = experiment.at_xpath("./Title").content if experiment.at_xpath("./Title")
20-
description = nil
21-
description = experiment.at_xpath("./Description").content if experiment.at_xpath("./Description")
22-
the_experiment = Experiment.create(:title => title, :description => description)
23-
24-
scenes_hash = {}
25-
experiment.xpath(".//Scene").each{|scene|
26-
title = nil
27-
title = scene.at_xpath("./Title").content if scene.at_xpath("./Title")
28-
description = nil
29-
description = scene.at_xpath("./Description").content if scene.at_xpath("./Description")
30-
scenes_hash[scene['URL']] = Scene.create(:name => title, :description => description, :use_url => true, :url => scene['URL']) unless scenes_hash[scene['URL']]
31-
}
32-
33-
34-
}
35-
return the_experiment
36-
end
37-
13+
3814
def results(complete = false)
3915

4016
number_of_steps = steps.length

0 commit comments

Comments
 (0)