Skip to content

Commit

Permalink
Remove methods that had been deprecated in 2015
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdubbelboer committed Feb 16, 2019
1 parent 0558e34 commit 6453619
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions bytesconv.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,23 +435,3 @@ func appendQuotedPath(dst, src []byte) []byte {
}
return dst
}

// EqualBytesStr returns true if string(b) == s.
//
// This function has no performance benefits comparing to string(b) == s.
// It is left here for backwards compatibility only.
//
// Deprecated: may be deleted soon.
func EqualBytesStr(b []byte, s string) bool {
return string(b) == s
}

// AppendBytesStr appends src to dst and returns the extended dst.
//
// This function has no performance benefits comparing to append(dst, src...).
// It is left here for backwards compatibility only.
//
// Deprecated: may be deleted soon.
func AppendBytesStr(dst []byte, src string) []byte {
return append(dst, src...)
}

0 comments on commit 6453619

Please sign in to comment.