From 37d138688a28979e2caffc1de00d8fa97c899886 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Fri, 22 Sep 2023 07:44:01 +0000 Subject: [PATCH] Remove GetSettings() --- internal/portforward/loop.go | 6 ------ internal/vpn/interfaces.go | 1 - 2 files changed, 7 deletions(-) diff --git a/internal/portforward/loop.go b/internal/portforward/loop.go index 291a7e420..5fb18d1b9 100644 --- a/internal/portforward/loop.go +++ b/internal/portforward/loop.go @@ -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 diff --git a/internal/vpn/interfaces.go b/internal/vpn/interfaces.go index 09afb381a..792404d3e 100644 --- a/internal/vpn/interfaces.go +++ b/internal/vpn/interfaces.go @@ -23,7 +23,6 @@ type Routing interface { type PortForward interface { UpdateWith(settings portforward.Settings) (err error) - GetSettings() (settings portforward.Settings) } type OpenVPN interface {