3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-22 18:52:41 +01:00

remove unused getters

This commit is contained in:
Shivaram Lingamneni 2019-10-04 00:52:36 -04:00
parent 7ef55c654a
commit 40df122c73

View File

@ -400,12 +400,6 @@ func (channel *Channel) setUserLimit(limit int) {
channel.stateMutex.Unlock() channel.stateMutex.Unlock()
} }
func (channel *Channel) Key() string {
channel.stateMutex.RLock()
defer channel.stateMutex.RUnlock()
return channel.key
}
func (channel *Channel) setKey(key string) { func (channel *Channel) setKey(key string) {
channel.stateMutex.Lock() channel.stateMutex.Lock()
defer channel.stateMutex.Unlock() defer channel.stateMutex.Unlock()
@ -418,13 +412,6 @@ func (channel *Channel) Founder() string {
return channel.registeredFounder 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) { func (channel *Channel) HighestUserMode(client *Client) (result modes.Mode) {
channel.stateMutex.RLock() channel.stateMutex.RLock()
clientModes := channel.members[client] clientModes := channel.members[client]