summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2023-03-20 18:39:08 +0100
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2023-09-25 09:43:37 +0200
commit8efa7aa299b0488ae4439906482b75df0fb00cc7 (patch)
tree2b740391aafc582b6bd2e5401a9ae35e3dae9981 /client
parent1f599f1aab37343ff61852a8616c640310dfaee4 (diff)
Exports + Python + Server: Remove ShouldRenewButton
This is replace with expiry times
Diffstat (limited to 'client')
-rw-r--r--client/server.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/client/server.go b/client/server.go
index f31da2e..6c0b4d2 100644
--- a/client/server.go
+++ b/client/server.go
@@ -588,19 +588,6 @@ func (c *Client) RenewSession() (err error) {
return c.ensureLogin(srv, srvtypes.Tokens{})
}
-// ShouldRenewButton returns true if the renew button should be shown
-// If there is no server then this returns false and logs with INFO if so
-// In other cases it simply checks the expiry time and calculates according to: https://github.com/eduvpn/documentation/blob/b93854dcdd22050d5f23e401619e0165cb8bc591/API.md#session-expiry.
-func (c *Client) ShouldRenewButton() bool {
- srv, err := c.Servers.GetCurrentServer()
- if err != nil {
- log.Logger.Infof("no server to renew: %s\nstacktrace:\n%s", err.Error(), err.(*errors.Error).ErrorStack())
- return false
- }
-
- return server.ShouldRenewButton(srv)
-}
-
// ensureLogin logs the user back in if needed.
// It runs the FSM transitions to ask for user input.
func (c *Client) ensureLogin(srv server.Server, t srvtypes.Tokens) (err error) {