From c1af1196d641b9dd0ac3fe59c5df0f8fe2a6d8b8 Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Tue, 17 Dec 2019 15:03:25 +0100 Subject: [PATCH] remove handler management --- pkg/register/command.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/pkg/register/command.go b/pkg/register/command.go index a2d8cd63e4..c439804a61 100644 --- a/pkg/register/command.go +++ b/pkg/register/command.go @@ -1,27 +1,18 @@ package register import ( - "context" - "github.com/micro/cli" - "github.com/oklog/run" "github.com/owncloud/ocis/pkg/config" ) var ( // Commands defines the slice of commands. Commands = []Command{} - - // Handlers defines the slice of handlers. - Handlers = []Handler{} ) // Command defines the register command. type Command func(*config.Config) cli.Command -// Handler defines the register handler. -type Handler func(context.Context, context.CancelFunc, *run.Group, *config.Config) error - // AddCommand appends a command to Commands. func AddCommand(cmd Command) { Commands = append( @@ -29,11 +20,3 @@ func AddCommand(cmd Command) { cmd, ) } - -// AddHandler appends a handler to Handlers. -func AddHandler(hdl Handler) { - Handlers = append( - Handlers, - hdl, - ) -}