refactor(pico): remove unused functions
This commit is contained in:
parent
d4d6c89bb7
commit
daaa08fd50
1 changed files with 0 additions and 12 deletions
|
|
@ -43,18 +43,6 @@ func (pc *picoConn) addSession(sessionID string) {
|
||||||
pc.sessions[sessionID] = struct{}{}
|
pc.sessions[sessionID] = struct{}{}
|
||||||
}
|
}
|
||||||
|
|
||||||
// removeSession removes a session ID from this connection.
|
|
||||||
func (pc *picoConn) removeSession(sessionID string) {
|
|
||||||
if sessionID == "" || sessionID == pc.sessionID {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
pc.sessionsMu.Lock()
|
|
||||||
defer pc.sessionsMu.Unlock()
|
|
||||||
|
|
||||||
delete(pc.sessions, sessionID)
|
|
||||||
}
|
|
||||||
|
|
||||||
// hasSession checks if this connection belongs to a session.
|
// hasSession checks if this connection belongs to a session.
|
||||||
func (pc *picoConn) hasSession(sessionID string) bool {
|
func (pc *picoConn) hasSession(sessionID string) bool {
|
||||||
if sessionID == "" {
|
if sessionID == "" {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue