From 8efa7aa299b0488ae4439906482b75df0fb00cc7 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 20 Mar 2023 18:39:08 +0100 Subject: Exports + Python + Server: Remove ShouldRenewButton This is replace with expiry times --- exports/exports.go | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'exports') diff --git a/exports/exports.go b/exports/exports.go index fe7581e..724185a 100644 --- a/exports/exports.go +++ b/exports/exports.go @@ -361,19 +361,6 @@ func RenewSession() *C.char { return getCError(renewSessionErr) } -//export ShouldRenewButton -func ShouldRenewButton() C.int { - state, stateErr := getVPNState() - if stateErr != nil { - return C.int(0) - } - shouldRenewBool := state.ShouldRenewButton() - if shouldRenewBool { - return C.int(1) - } - return C.int(0) -} - //export SetSupportWireguard func SetSupportWireguard(support C.int) *C.char { state, stateErr := getVPNState() -- cgit v1.2.3