From 80a514dce6b1d6df12042b919746489632931745 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 8 Nov 2019 11:34:38 +0100 Subject: [PATCH] Remove hooking feature --- updater/registry.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/updater/registry.go b/updater/registry.go index d593b9f..2d914ce 100644 --- a/updater/registry.go +++ b/updater/registry.go @@ -5,8 +5,6 @@ import ( "runtime" "sync" - "github.com/tevino/abool" - "github.com/safing/portbase/log" "github.com/safing/portbase/utils" ) @@ -30,9 +28,6 @@ type ResourceRegistry struct { Beta bool DevMode bool Online bool - - notifyHooks []func() - notifyHooksEnabled *abool.AtomicBool } // Initialize initializes a raw registry struct and makes it ready for usage. @@ -52,7 +47,6 @@ func (reg *ResourceRegistry) Initialize(storageDir *utils.DirStructure) error { reg.storageDir = storageDir reg.tmpDir = storageDir.ChildDir("tmp", 0700) reg.resources = make(map[string]*Resource) - reg.notifyHooksEnabled = abool.NewBool(true) return nil }