mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-10 22:19:31 +01:00
remove unused getters
This commit is contained in:
parent
7ef55c654a
commit
40df122c73
@ -400,12 +400,6 @@ func (channel *Channel) setUserLimit(limit int) {
|
||||
channel.stateMutex.Unlock()
|
||||
}
|
||||
|
||||
func (channel *Channel) Key() string {
|
||||
channel.stateMutex.RLock()
|
||||
defer channel.stateMutex.RUnlock()
|
||||
return channel.key
|
||||
}
|
||||
|
||||
func (channel *Channel) setKey(key string) {
|
||||
channel.stateMutex.Lock()
|
||||
defer channel.stateMutex.Unlock()
|
||||
@ -418,13 +412,6 @@ func (channel *Channel) Founder() string {
|
||||
return channel.registeredFounder
|
||||
}
|
||||
|
||||
func (channel *Channel) DirtyBits() (dirtyBits uint) {
|
||||
channel.stateMutex.Lock()
|
||||
dirtyBits = channel.dirtyBits
|
||||
channel.stateMutex.Unlock()
|
||||
return
|
||||
}
|
||||
|
||||
func (channel *Channel) HighestUserMode(client *Client) (result modes.Mode) {
|
||||
channel.stateMutex.RLock()
|
||||
clientModes := channel.members[client]
|
||||
|
Loading…
Reference in New Issue
Block a user