diff --git a/internal/debug/hooks.go b/internal/debug/hooks.go deleted file mode 100644 index f17b02701..000000000 --- a/internal/debug/hooks.go +++ /dev/null @@ -1,29 +0,0 @@ -//go:build debug -// +build debug - -package debug - -var ( - hooks map[string]func(interface{}) -) - -func init() { - hooks = make(map[string]func(interface{})) -} - -func Hook(name string, f func(interface{})) { - hooks[name] = f -} - -func RunHook(name string, context interface{}) { - f, ok := hooks[name] - if !ok { - return - } - - f(context) -} - -func RemoveHook(name string) { - delete(hooks, name) -} diff --git a/internal/debug/hooks_release.go b/internal/debug/hooks_release.go deleted file mode 100644 index fb7a5bdcd..000000000 --- a/internal/debug/hooks_release.go +++ /dev/null @@ -1,10 +0,0 @@ -//go:build !debug -// +build !debug - -package debug - -func Hook(name string, f func(interface{})) {} - -func RunHook(name string, context interface{}) {} - -func RemoveHook(name string) {}