Remove EncodeToStream(..., []unversioned.GroupVersion)

Was not being used.
This commit is contained in:
Clayton Coleman
2016-05-22 17:23:08 -04:00
parent 60c1ec8eac
commit 36a5ffbe2f
19 changed files with 108 additions and 101 deletions

View File

@@ -54,7 +54,7 @@ func (s unstructuredJSONScheme) Decode(data []byte, _ *unversioned.GroupVersionK
return obj, &gvk, nil
}
func (unstructuredJSONScheme) EncodeToStream(obj Object, w io.Writer, overrides ...unversioned.GroupVersion) error {
func (unstructuredJSONScheme) Encode(obj Object, w io.Writer) error {
switch t := obj.(type) {
case *Unstructured:
return json.NewEncoder(w).Encode(t.Object)