Commit 4c4b045c authored by Samir Noir's avatar Samir Noir 🧀
Browse files

Remove async_find method which used EventMachine

parent ae262d0c
...@@ -143,19 +143,6 @@ module Grid5000 ...@@ -143,19 +143,6 @@ module Grid5000
path path
end end
def async_find(*args)
require 'eventmachine'
self.extend(EventMachine::Deferrable)
callback = proc { |result|
set_deferred_status :succeeded, result
}
EM.defer(proc{
result = find(*args)
}, callback)
self
end
def versions_for(path, options = {}) def versions_for(path, options = {})
branch, offset, limit = options.values_at(:branch, :offset, :limit) branch, offset, limit = options.values_at(:branch, :offset, :limit)
branch ||= 'master' branch ||= 'master'
......
...@@ -205,12 +205,4 @@ describe Grid5000::Repository do ...@@ -205,12 +205,4 @@ describe Grid5000::Repository do
end end
end # describe versions_for end # describe versions_for
end # describe "with a working repository" end # describe "with a working repository"
# it "should description" do
# object = repository.async_find(sha, :branch => "master") do |hash, uri|
# hash['links'] = links_for(hash, uri)
# end
#
# end
end end
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment