Remove obsolete devMode option instance

This commit is contained in:
Daniel 2021-10-14 14:18:17 +02:00
parent b716f56eaf
commit 7e21e7c7d7
2 changed files with 2 additions and 6 deletions

View file

@ -8,7 +8,7 @@ import (
// Configuration Keys. // Configuration Keys.
var ( var (
// CfgDevModeKey is originally defined in portbase/config. // CfgDevModeKey was previously defined here.
CfgDevModeKey = config.CfgDevModeKey CfgDevModeKey = config.CfgDevModeKey
CfgNetworkServiceKey = "core/networkService" CfgNetworkServiceKey = "core/networkService"

View file

@ -5,8 +5,6 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/safing/portbase/config"
"github.com/safing/portbase/modules" "github.com/safing/portbase/modules"
"github.com/safing/portbase/modules/subsystems" "github.com/safing/portbase/modules/subsystems"
"github.com/tevino/abool" "github.com/tevino/abool"
@ -26,9 +24,7 @@ const (
var ( var (
module *modules.Module module *modules.Module
restarting = abool.New() restarting = abool.New()
devMode = config.Concurrent.GetAsBool(config.CfgDevModeKey, false)
disableShutdownEvent bool disableShutdownEvent bool
) )