Skip to content

Commit

Permalink
fix: remove unused function with limited behaviour; fixes #866
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Bowman committed Dec 11, 2023
1 parent d0f8f3e commit ce1dec0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions utils/strings.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
package utils

// LengthPrefixString returns length-prefixed bytes representation of a string.
func LengthPrefixString(s string) []byte {
bz := []byte(s)
bzLen := len(bz)
return append([]byte{byte(bzLen)}, bz...)
}

// create a map from a slice of strings for efficient lookup
func StringSliceToMap(in []string) map[string]bool {
out := make(map[string]bool, len(in))
Expand Down

0 comments on commit ce1dec0

Please sign in to comment.