mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
remove unused HasHost.
This commit is contained in:
parent
b24c217509
commit
edb9fef097
@ -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()
|
||||
|
@ -46,7 +46,6 @@ type SessionManager interface {
|
||||
Get(id string) (Session, bool)
|
||||
Delete(id string) error
|
||||
|
||||
HasHost() bool
|
||||
SetHost(host Session)
|
||||
GetHost() Session
|
||||
ClearHost()
|
||||
|
Loading…
Reference in New Issue
Block a user