From 1c4f9daae7787cd424395205a6ab94af92f31ca0 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Fri, 7 Aug 2020 00:16:04 -0400 Subject: [PATCH] remove some dead code --- irc/client.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/irc/client.go b/irc/client.go index 3f4c1e8b..14535df8 100644 --- a/irc/client.go +++ b/irc/client.go @@ -989,20 +989,6 @@ func (client *Client) IdleSeconds() uint64 { return uint64(client.IdleTime().Seconds()) } -// HasNick returns true if the client's nickname is set (used in registration). -func (client *Client) HasNick() bool { - client.stateMutex.RLock() - defer client.stateMutex.RUnlock() - return client.nick != "" && client.nick != "*" -} - -// HasUsername returns true if the client's username is set (used in registration). -func (client *Client) HasUsername() bool { - client.stateMutex.RLock() - defer client.stateMutex.RUnlock() - return client.username != "" && client.username != "*" -} - // SetNames sets the client's ident and realname. func (client *Client) SetNames(username, realname string, fromIdent bool) error { limit := client.server.Config().Limits.IdentLen