aboutsummaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2022-11-17 13:27:57 +0100
committerTobias Klauser <tobias.klauser@gmail.com>2022-11-17 16:20:57 +0000
commit86713ea31116ca295db98713d24c2cea41dcb5be (patch)
tree8b63bb6629e3a2a739cb015cd03391ef64446ba0 /src/internal
parent1daa8e2d5226e0645d9748c32e031d93f485e740 (diff)
downloadgo-86713ea31116ca295db98713d24c2cea41dcb5be.tar.xz
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>
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/profile/proto.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/internal/profile/proto.go b/src/internal/profile/proto.go
index 3e9ec37253..58ff0ad2e0 100644
--- a/src/internal/profile/proto.go
+++ b/src/internal/profile/proto.go
@@ -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)