Skip to content

Commit

Permalink
Remove unused method.
Browse files Browse the repository at this point in the history
  • Loading branch information
asnare committed Jan 7, 2025
1 parent 5dfc0e9 commit 4e480ee
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/databricks/labs/ucx/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from databricks.labs.ucx.__about__ import __version__
from databricks.labs.ucx.assessment.workflows import Assessment, Failing
from databricks.labs.ucx.contexts.workflow_task import RuntimeContext
from databricks.labs.ucx.framework.tasks import Task, Workflow, parse_args
from databricks.labs.ucx.framework.tasks import Workflow, parse_args
from databricks.labs.ucx.installer.logs import TaskLogger
from databricks.labs.ucx.hive_metastore.workflows import (
ScanTablesInMounts,
Expand All @@ -31,11 +31,7 @@

class Workflows:
def __init__(self, workflows: list[Workflow]):
self._tasks: list[Task] = []
self._workflows: dict[str, Workflow] = {}
for workflow in workflows:
self._workflows[workflow.name] = workflow
self._tasks.extend(workflow.tasks())
self._workflows: dict[str, Workflow] = {workflow.name: workflow for workflow in workflows}

@classmethod
def all(cls):
Expand All @@ -57,9 +53,6 @@ def all(cls):
]
)

def tasks(self) -> list[Task]:
return self._tasks

def workflows(self) -> dict[str, Workflow]:
return self._workflows

Expand Down

0 comments on commit 4e480ee

Please sign in to comment.