Browse Source

Merge pull request #1230 from slingamn/hasnick

remove some dead code
tags/v2.3.0-rc1
Shivaram Lingamneni 3 years ago
parent
commit
12bcba01cd
No account linked to committer's email address
1 changed files with 0 additions and 14 deletions
  1. 0
    14
      irc/client.go

+ 0
- 14
irc/client.go View File

@@ -989,20 +989,6 @@ func (client *Client) IdleSeconds() uint64 {
989 989
 	return uint64(client.IdleTime().Seconds())
990 990
 }
991 991
 
992
-// HasNick returns true if the client's nickname is set (used in registration).
993
-func (client *Client) HasNick() bool {
994
-	client.stateMutex.RLock()
995
-	defer client.stateMutex.RUnlock()
996
-	return client.nick != "" && client.nick != "*"
997
-}
998
-
999
-// HasUsername returns true if the client's username is set (used in registration).
1000
-func (client *Client) HasUsername() bool {
1001
-	client.stateMutex.RLock()
1002
-	defer client.stateMutex.RUnlock()
1003
-	return client.username != "" && client.username != "*"
1004
-}
1005
-
1006 992
 // SetNames sets the client's ident and realname.
1007 993
 func (client *Client) SetNames(username, realname string, fromIdent bool) error {
1008 994
 	limit := client.server.Config().Limits.IdentLen

Loading…
Cancel
Save