From 4f473a5d10bc1c9c659ffebf632f7d49c61c9a53 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Fri, 15 Jul 2022 15:01:07 +0200 Subject: State + Python: Remove Set/Get Identifier Let clients serialize data to a file themselves --- state.go | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'state.go') diff --git a/state.go b/state.go index da78d19..b8fa046 100644 --- a/state.go +++ b/state.go @@ -29,9 +29,6 @@ type VPNState struct { // Whether to enable debugging Debug bool `json:"-"` - - // Serialized connection identifier - Identifier string `json:"identifier"` } func (state *VPNState) GetSavedServers() string { @@ -320,14 +317,6 @@ func (state *VPNState) SetProfileID(profileID string) error { return nil } -func (state *VPNState) GetIdentifier() string { - return state.Identifier -} - -func (state *VPNState) SetIdentifier(identifier string) { - state.Identifier = identifier -} - func (state *VPNState) SetSearchServer() error { if !state.FSM.HasTransition(fsm.SEARCH_SERVER) { return &types.WrappedErrorMessage{Message: "failed to set search server", Err: fsm.WrongStateTransitionError{Got: state.FSM.Current, Want: fsm.CONNECTED}.CustomError()} -- cgit v1.2.3