mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
remove unused function of NewSingleContentTypeSerializer
Signed-off-by: he.qingguo <he.qingguo@zte.com.cn>
This commit is contained in:
parent
ff4234720d
commit
6340b7e0aa
@ -21,14 +21,6 @@ import (
|
|||||||
"k8s.io/apimachinery/pkg/runtime/serializer/versioning"
|
"k8s.io/apimachinery/pkg/runtime/serializer/versioning"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NewSingleContentTypeSerializer wraps a serializer in a NegotiatedSerializer that handles one content type
|
|
||||||
func NewSingleContentTypeSerializer(scheme *runtime.Scheme, info runtime.SerializerInfo) runtime.StorageSerializer {
|
|
||||||
return &wrappedSerializer{
|
|
||||||
scheme: scheme,
|
|
||||||
info: info,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
type wrappedSerializer struct {
|
type wrappedSerializer struct {
|
||||||
scheme *runtime.Scheme
|
scheme *runtime.Scheme
|
||||||
info runtime.SerializerInfo
|
info runtime.SerializerInfo
|
||||||
|
Loading…
Reference in New Issue
Block a user