mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-03-09 13:13:32 +00:00
internal/impl: remove Export.ExtensionDescFromType
This is no longer needed by the old implementation. Change-Id: I3ba02d37f35f599ec790ec4e627258273883a308 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/223279 Reviewed-by: Damien Neil <dneil@google.com>
This commit is contained in:
parent
4ab2bc9bb7
commit
92af527de9
2
go.mod
2
go.mod
@ -3,6 +3,6 @@ module google.golang.org/protobuf
|
||||
go 1.9
|
||||
|
||||
require (
|
||||
github.com/golang/protobuf v1.4.0-rc.4
|
||||
github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0
|
||||
github.com/google/go-cmp v0.4.0
|
||||
)
|
||||
|
4
go.sum
4
go.sum
@ -1,8 +1,8 @@
|
||||
github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
|
||||
github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
|
||||
github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
|
||||
github.com/golang/protobuf v1.4.0-rc.4 h1:+EOh4OY6tjM6ZueeUKinl1f0U2820HzQOuf1iqMnsks=
|
||||
github.com/golang/protobuf v1.4.0-rc.4/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
|
||||
github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0 h1:aRz0NBceriICVtjhCgKkDvl+RudKu1CT6h0ZvUTrNfE=
|
||||
github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
|
||||
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||
github.com/google/go-cmp v0.4.0 h1:xsAVV57WRhGj6kEIi8ReJzQlHHqcBYCElAvkovg3B/4=
|
||||
|
@ -168,12 +168,3 @@ func (Export) MessageTypeOf(m message) pref.MessageType {
|
||||
func (Export) MessageStringOf(m pref.ProtoMessage) string {
|
||||
return prototext.MarshalOptions{Multiline: false}.Format(m)
|
||||
}
|
||||
|
||||
// ExtensionDescFromType returns the legacy protoV1.ExtensionDesc for t.
|
||||
func (Export) ExtensionDescFromType(t pref.ExtensionType) *ExtensionInfo {
|
||||
// TODO: Delete this function when v1 directly does this assertion.
|
||||
if xt, ok := t.(*ExtensionInfo); ok {
|
||||
return xt
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user