Commit d3ab23b6 authored by Raphaël Hertzog's avatar Raphaël Hertzog

tasks: drop no longer user code after the big refactoring

parent a018655d
......@@ -234,9 +234,6 @@ class UpdateRepositoriesTask(BaseTask):
binary_package_name = BinaryPackageName.objects.get(
name=binary_name)
binaries.append(binary_package_name)
self.raise_event('new-binary-package', {
'name': binary_name,
})
entry['binary_packages'] = binaries
if 'maintainer' in entry:
......
......@@ -299,27 +299,6 @@ class BaseTask(metaclass=PluginRegistry):
for function in self.event_handlers.get(event, []):
function(*args, **kwargs)
# TO DROP LATER: kept only for temporary API compatibility
def is_initial_task(self):
# We force a full run
return True
def get_all_events(self):
return []
def raise_event(self, event_name, arguments=None):
pass
def set_parameters(self, parameters):
"""
Allows clients to set additional task-specific parameters once a task
is already created.
:param parameters: The extra parameters.
:type parameters: dict
"""
pass
def import_all_tasks():
"""
......
Markdown is supported
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