From edb9fef0977f576bdadd8e1e315f27bf95a652ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Sat, 5 Dec 2020 23:42:40 +0100 Subject: [PATCH] remove unused HasHost. --- internal/session/manager.go | 7 ------- internal/types/session.go | 1 - 2 files changed, 8 deletions(-) diff --git a/internal/session/manager.go b/internal/session/manager.go index a0c99053..a064e297 100644 --- a/internal/session/manager.go +++ b/internal/session/manager.go @@ -157,13 +157,6 @@ func (manager *SessionManagerCtx) Get(id string) (types.Session, bool) { // host // --- -func (manager *SessionManagerCtx) HasHost() bool { - manager.hostMu.Lock() - defer manager.hostMu.Unlock() - - return manager.host != nil -} - func (manager *SessionManagerCtx) SetHost(host types.Session) { manager.hostMu.Lock() defer manager.hostMu.Unlock() diff --git a/internal/types/session.go b/internal/types/session.go index 79e01a73..d5b2688d 100644 --- a/internal/types/session.go +++ b/internal/types/session.go @@ -46,7 +46,6 @@ type SessionManager interface { Get(id string) (Session, bool) Delete(id string) error - HasHost() bool SetHost(host Session) GetHost() Session ClearHost()