Skip to content

Commit a3ee736

Browse files
committed
imapclient: drop unused Client.unregisterContReq
1 parent 4ad68fb commit a3ee736

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

imapclient/client.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -484,17 +484,6 @@ func (c *Client) registerContReq(cmd command) *imapwire.ContinuationRequest {
484484
return contReq
485485
}
486486

487-
func (c *Client) unregisterContReq(contReq *imapwire.ContinuationRequest) {
488-
c.mutex.Lock()
489-
for i := range c.contReqs {
490-
if c.contReqs[i].ContinuationRequest == contReq {
491-
c.contReqs = append(c.contReqs[:i], c.contReqs[i+1:]...)
492-
break
493-
}
494-
}
495-
c.mutex.Unlock()
496-
}
497-
498487
// read continuously reads data coming from the server.
499488
//
500489
// All the data is decoded in the read goroutine, then dispatched via channels

0 commit comments

Comments
 (0)