aboutsummaryrefslogtreecommitdiff
path: root/pkg/types/encoding.go
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus@mullvad.net>2022-03-28 18:53:18 +0200
committerRasmus Dahlberg <rasmus@mullvad.net>2022-03-28 19:10:49 +0200
commit4e4a55c54cefbd7e9e5c0915420cba46fa657b8b (patch)
treeaba7732e72a524358775f958bd1e317ee64cc43c /pkg/types/encoding.go
parent2420cff48ae963f07412b70909d178f332d25058 (diff)
remove dead code
Diffstat (limited to 'pkg/types/encoding.go')
-rw-r--r--pkg/types/encoding.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/pkg/types/encoding.go b/pkg/types/encoding.go
index 54a1ac6..9fd2caa 100644
--- a/pkg/types/encoding.go
+++ b/pkg/types/encoding.go
@@ -2,7 +2,6 @@ package types
import (
"encoding/binary"
- "fmt"
)
// RFC4251, section 5
@@ -18,14 +17,3 @@ func putSSHString(b []byte, str string) int {
return i
}
-
-func getSSHString(b []byte) (*string, error) {
- if len(b) < 4 {
- return nil, fmt.Errorf("types: invalid SSH string")
- }
-
- l := binary.BigEndian.Uint32(b[:4])
- str := string(b[4 : 4+l])
- return &str, nil
-
-}