Skip to content

Commit bcb00f1

Browse files
committed
config: remove unused internal function
Signed-off-by: Robert Fratto <[email protected]>
1 parent 7b35f6a commit bcb00f1

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

config/http_config.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -949,21 +949,6 @@ func (c *TLSConfig) roundTripperSettings() TLSRoundTripperSettings {
949949
}
950950
}
951951

952-
// readCertAndKey reads the cert and key files from the disk.
953-
func readCertAndKey(certFile, keyFile string) ([]byte, []byte, error) {
954-
certData, err := os.ReadFile(certFile)
955-
if err != nil {
956-
return nil, nil, err
957-
}
958-
959-
keyData, err := os.ReadFile(keyFile)
960-
if err != nil {
961-
return nil, nil, err
962-
}
963-
964-
return certData, keyData, nil
965-
}
966-
967952
// getClientCertificate reads the pair of client cert and key from disk and returns a tls.Certificate.
968953
func (c *TLSConfig) getClientCertificate(_ *tls.CertificateRequestInfo) (*tls.Certificate, error) {
969954
var (

0 commit comments

Comments
 (0)