1
0
mirror of https://github.com/golang/go synced 2024-11-17 05:54:46 -07:00

internal/profile: remove unused encodeStringOpt

Change-Id: Icaee8064c5ab61cc2ad28c2d1d06d70f845754fa
Reviewed-on: https://go-review.googlesource.com/c/go/+/451535
Reviewed-by: Joedian Reid <joedian@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
This commit is contained in:
Tobias Klauser 2022-11-17 13:27:57 +01:00 committed by Tobias Klauser
parent 1daa8e2d52
commit 86713ea311

View File

@ -136,13 +136,6 @@ func encodeStrings(b *buffer, tag int, x []string) {
}
}
func encodeStringOpt(b *buffer, tag int, x string) {
if x == "" {
return
}
encodeString(b, tag, x)
}
func encodeBool(b *buffer, tag int, x bool) {
if x {
encodeUint64(b, tag, 1)