Skip to content
Snippets Groups Projects
Commit b42a4d0e authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre
Browse files

Remove unused GeoRepositoryDestroy#async_execute method

parent ca9a134d
No related merge requests found
......@@ -9,10 +9,6 @@ def initialize(id, name, disk_path, repository_storage)
@repository_storage = repository_storage
end
def async_execute
GeoRepositoryDestroyWorker.perform_async(id, name, disk_path, repository_storage)
end
def execute
::Projects::DestroyService.new(deleted_project, nil).geo_replicate
end
......
......@@ -12,14 +12,6 @@
stub_current_geo_node(secondary)
end
describe '#async_execute' do
it 'starts the worker' do
expect(GeoRepositoryDestroyWorker).to receive(:perform_async)
subject.async_execute
end
end
describe '#execute' do
it 'delegates project removal to Projects::DestroyService' do
expect_any_instance_of(EE::Projects::DestroyService).to receive(:geo_replicate)
......
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