]> Cypherpunks repositories - gostls13.git/commitdiff
internal/profile: remove unused encodeStringOpt
authorTobias Klauser <tklauser@distanz.ch>
Thu, 17 Nov 2022 12:27:57 +0000 (13:27 +0100)
committerTobias Klauser <tobias.klauser@gmail.com>
Thu, 17 Nov 2022 16:20:57 +0000 (16:20 +0000)
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>

src/internal/profile/proto.go

index 3e9ec372536ee549984731af2347774b62cd87ad..58ff0ad2e07789e2d2e118e3a273104c723c465d 100644 (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)