Nothing uses this error. Change-Id: I30e94c2b6f3c7865c40d8536d371c7e04b5af908 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/167040 Reviewed-by: Herbie Ong <herbie@google.com>
@@ -17,10 +17,6 @@ import (
// errOverflow is returned when an integer is too large to be represented.
var errOverflow = errors.New("proto: integer overflow")
-// ErrInternalBadWireType is returned by generated code when an incorrect
-// wire type is encountered. It does not get returned to user code.
-var ErrInternalBadWireType = errors.New("proto: internal error: bad wiretype for oneof")
-
// DecodeVarint reads a varint-encoded integer from the slice.
// It returns the integer and the number of bytes consumed, or
// zero if there is not enough.
@@ -10,6 +10,9 @@ import (
"github.com/golang/protobuf/protoapi"
)
+// Deprecated: do not use.
+var ErrInternalBadWireType = errors.New("proto: internal error: bad wiretype for oneof")
+
// Deprecated: do not use.
type Stats struct{ Emalloc, Dmalloc, Encode, Decode, Chit, Cmiss, Size uint64 }