Skip to content

Commit

Permalink
imapclient: drop unused Client.unregisterContReq
Browse files Browse the repository at this point in the history
  • Loading branch information
emersion committed Aug 27, 2023
1 parent 4ad68fb commit a3ee736
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions imapclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -484,17 +484,6 @@ func (c *Client) registerContReq(cmd command) *imapwire.ContinuationRequest {
return contReq
}

func (c *Client) unregisterContReq(contReq *imapwire.ContinuationRequest) {
c.mutex.Lock()
for i := range c.contReqs {
if c.contReqs[i].ContinuationRequest == contReq {
c.contReqs = append(c.contReqs[:i], c.contReqs[i+1:]...)
break
}
}
c.mutex.Unlock()
}

// read continuously reads data coming from the server.
//
// All the data is decoded in the read goroutine, then dispatched via channels
Expand Down

0 comments on commit a3ee736

Please sign in to comment.