Skip to content

Commit

Permalink
Remove GetSettings()
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Sep 22, 2023
1 parent da00b13 commit 37d1386
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions internal/portforward/loop.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,6 @@ func (l *Loop) Stop() (err error) {
return nil
}

func (l *Loop) GetSettings() (settings service.Settings) {
l.settingsMutex.RLock()
defer l.settingsMutex.RUnlock()
return l.settings
}

func (l *Loop) GetPortForwarded() (port uint16) {
if l.service == nil {
return 0
Expand Down
1 change: 0 additions & 1 deletion internal/vpn/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ type Routing interface {

type PortForward interface {
UpdateWith(settings portforward.Settings) (err error)
GetSettings() (settings portforward.Settings)
}

type OpenVPN interface {
Expand Down

0 comments on commit 37d1386

Please sign in to comment.