summaryrefslogtreecommitdiff
path: root/state.go
diff options
context:
space:
mode:
Diffstat (limited to 'state.go')
-rw-r--r--state.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/state.go b/state.go
index 1f9f52c..3ca0a4b 100644
--- a/state.go
+++ b/state.go
@@ -25,15 +25,6 @@ type VPNState struct {
Debug bool `json:"-"`
}
-var VPNStateInstance *VPNState
-
-func GetVPNState() *VPNState {
- if VPNStateInstance == nil {
- VPNStateInstance = &VPNState{}
- }
- return VPNStateInstance
-}
-
func (state *VPNState) Register(name string, directory string, stateCallback func(string, string, string), debug bool) error {
if !state.FSM.InState(internal.DEREGISTERED) {
return errors.New("app already registered")