diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-07-15 15:01:07 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-07-15 15:01:07 +0200 |
| commit | 4f473a5d10bc1c9c659ffebf632f7d49c61c9a53 (patch) | |
| tree | 63c58b37ca9970ac2c54fb008aa50f2bea92e0a0 /state.go | |
| parent | 28ef64c0721e00780a6276cee33af259c7752c39 (diff) | |
State + Python: Remove Set/Get Identifier
Let clients serialize data to a file themselves
Diffstat (limited to 'state.go')
| -rw-r--r-- | state.go | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -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()} |
