remove unused HasHost.
This commit is contained in:
parent
b24c217509
commit
edb9fef097
2 changed files with 0 additions and 8 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue