Skip to content

Commit

Permalink
chores: remove unsafeByToString
Browse files Browse the repository at this point in the history
  • Loading branch information
quagmt committed Nov 1, 2024
1 parent 4ea866a commit c585529
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,6 @@ func quoRem64(u u128, v uint64) (q u128, r uint64) {
return u.QuoRem64(v)
}

// func unsafeBytesToString(b []byte) string {
// return unsafe.String(unsafe.SliceData(b), len(b))
// }

func unsafeStringToBytes(s string) []byte {
return unsafe.Slice(unsafe.StringData(s), len(s))
}
Expand Down

0 comments on commit c585529

Please sign in to comment.