diff --git a/weed/worker/types/task.go b/weed/worker/types/task.go index 5ebed89c1..47f672531 100644 --- a/weed/worker/types/task.go +++ b/weed/worker/types/task.go @@ -118,14 +118,3 @@ type LoggerConfig struct { type LoggerFactory interface { CreateLogger(ctx context.Context, config LoggerConfig) (Logger, error) } - -// BaseTask provides common task functionality -type UnifiedBaseTask struct { - id string - taskType TaskType - progressCallback func(float64, string) - logger Logger - cancelled bool - currentStage string - workingDir string -} diff --git a/weed/worker/types/worker.go b/weed/worker/types/worker.go index ac6cfac08..bb30dc8ba 100644 --- a/weed/worker/types/worker.go +++ b/weed/worker/types/worker.go @@ -21,12 +21,3 @@ type Worker interface { // Configuration Configure(config WorkerCreationConfig) error } - -// BaseWorker provides common worker functionality -type BaseWorker struct { - id string - capabilities []TaskType - maxConcurrent int - currentTasks map[string]Task - logger Logger -}