backend/b2: remove unused largeUpload.clearUploadURL()

This commit is contained in:
Lars Lehtonen 2020-03-16 07:39:45 -07:00 committed by Nick Craig-Wood
parent c227a90b52
commit a6a2eec392

View file

@ -184,13 +184,6 @@ func (up *largeUpload) returnUploadURL(upload *api.GetUploadPartURLResponse) {
up.uploadMu.Unlock()
}
// clearUploadURL clears the current UploadURL and the AuthorizationToken
func (up *largeUpload) clearUploadURL() {
up.uploadMu.Lock()
up.uploads = nil
up.uploadMu.Unlock()
}
// Transfer a chunk
func (up *largeUpload) transferChunk(ctx context.Context, part int64, body []byte) error {
err := up.f.pacer.Call(func() (bool, error) {