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
// ---
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()

View File

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