Skip to content

Commit 248bed0

Browse files
author
JPadovano1483
committed
removing more dead code
1 parent 9a8b555 commit 248bed0

File tree

4 files changed

+0
-119
lines changed

4 files changed

+0
-119
lines changed

internal/utils/configs/config.go

Lines changed: 0 additions & 18 deletions
This file was deleted.

internal/utils/configs/config_test.go

Lines changed: 0 additions & 79 deletions
This file was deleted.

internal/utils/tlscfg/tls.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,6 @@ package tlscfg
22

33
import "crypto/tls"
44

5-
var (
6-
tlsCiphers []uint16
7-
)
8-
9-
func init() {
10-
tlsCiphers = make([]uint16, len(tls.CipherSuites()))
11-
for i, suite := range tls.CipherSuites() {
12-
tlsCiphers[i] = suite.ID
13-
}
14-
}
15-
165
// Modern TLS Configuration for when TLSv1.3 can be assumed (e.g. when only
176
// internal clients are expected.)
187
func Modern() *tls.Config {

internal/utils/tlscfg/tls_test.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,6 @@ import (
55
"testing"
66
)
77

8-
func TestInit(t *testing.T) {
9-
if len(tlsCiphers) == 0 {
10-
t.Error("Expected tlsCiphers to be initialized in init()")
11-
}
12-
13-
expectedLength := len(tls.CipherSuites())
14-
if len(tlsCiphers) != expectedLength {
15-
t.Errorf("Expected tlsCiphers to have %d suites, got %d", expectedLength, len(tlsCiphers))
16-
}
17-
}
18-
198
func TestModern(t *testing.T) {
209
config := Modern()
2110

0 commit comments

Comments
 (0)