Skip to content

Commit

Permalink
Remove unused code in http_sender.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Amundson committed Feb 8, 2024
1 parent 6248853 commit ee6c998
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions internal/sdk/http_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package sdk

import (
"io"
"maps"
"net/http"

"github.com/smartystreets/smartystreets-go-sdk"
Expand Down Expand Up @@ -54,11 +53,3 @@ func interpret(response *http.Response, content []byte) ([]byte, error) {
}
return nil, sdk.NewHTTPStatusError(response.StatusCode, content)
}

func interpretAndReturnHeaders(response *http.Response, content []byte, headers http.Header) ([]byte, http.Header, error) {
if response.StatusCode == http.StatusOK {
maps.Copy(headers, response.Header)
return content, headers, nil
}
return nil, nil, sdk.NewHTTPStatusError(response.StatusCode, content)
}

0 comments on commit ee6c998

Please sign in to comment.