Skip to content

Commit

Permalink
internal/profile: remove unused encodeStringOpt
Browse files Browse the repository at this point in the history
Change-Id: Icaee8064c5ab61cc2ad28c2d1d06d70f845754fa
Reviewed-on: https://go-review.googlesource.com/c/go/+/451535
Reviewed-by: Joedian Reid <[email protected]>
Reviewed-by: Cherry Mui <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Run-TryBot: Tobias Klauser <[email protected]>
  • Loading branch information
tklauser committed Nov 17, 2022
1 parent 1daa8e2 commit 86713ea
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/internal/profile/proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 86713ea

Please sign in to comment.