remove unused HasHost.

This commit is contained in:
Miroslav Šedivý 2020-12-05 23:42:40 +01:00
parent b24c217509
commit edb9fef097
2 changed files with 0 additions and 8 deletions

View File

@ -157,13 +157,6 @@ func (manager *SessionManagerCtx) Get(id string) (types.Session, bool) {
// host // host
// --- // ---
func (manager *SessionManagerCtx) HasHost() bool {
manager.hostMu.Lock()
defer manager.hostMu.Unlock()
return manager.host != nil
}
func (manager *SessionManagerCtx) SetHost(host types.Session) { func (manager *SessionManagerCtx) SetHost(host types.Session) {
manager.hostMu.Lock() manager.hostMu.Lock()
defer manager.hostMu.Unlock() defer manager.hostMu.Unlock()

View File

@ -46,7 +46,6 @@ type SessionManager interface {
Get(id string) (Session, bool) Get(id string) (Session, bool)
Delete(id string) error Delete(id string) error
HasHost() bool
SetHost(host Session) SetHost(host Session)
GetHost() Session GetHost() Session
ClearHost() ClearHost()