Skip to content

Commit

Permalink
remove code without called
Browse files Browse the repository at this point in the history
  • Loading branch information
yabinma committed Nov 26, 2024
1 parent 55b5500 commit 51aeb35
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions netclient/ncutils/netclientutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,3 @@ func ConvertBytesToKey(data []byte) (*[32]byte, error) {
}
return result, err
}

// ConvertBytesToKey - util to convert bytes to a key to use elsewhere
func ConvertBytesToKey1(data []byte) ([]byte, error) {
var buffer = bytes.NewBuffer(data)
var dec = gob.NewDecoder(buffer)
var result = []byte{}
var err = dec.Decode(result)
if err != nil {
return nil, err
}
return result, err
}

0 comments on commit 51aeb35

Please sign in to comment.