From: Tobias Klauser Date: Thu, 17 Nov 2022 12:27:57 +0000 (+0100) Subject: internal/profile: remove unused encodeStringOpt X-Git-Tag: go1.20rc1~191 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=86713ea31116ca295db98713d24c2cea41dcb5be;p=gostls13.git internal/profile: remove unused encodeStringOpt Change-Id: Icaee8064c5ab61cc2ad28c2d1d06d70f845754fa Reviewed-on: https://go-review.googlesource.com/c/go/+/451535 Reviewed-by: Joedian Reid Reviewed-by: Cherry Mui TryBot-Result: Gopher Robot Run-TryBot: Tobias Klauser --- 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)