commented code cleanup

This commit is contained in:
Colin Henry 2020-08-18 17:47:14 -07:00
parent 37d0d5e98d
commit 85df14e0c6
2 changed files with 0 additions and 19 deletions

View File

@ -12,12 +12,3 @@ func Encoder(w io.Writer, e interface{}) error {
func Decoder(r io.Reader, e interface{}) error { func Decoder(r io.Reader, e interface{}) error {
return json.NewDecoder(r).Decode(e) return json.NewDecoder(r).Decode(e)
} }
// func Decoder(get func() interface{}) func(io.Reader) (interface{}, error) {
// //TODO I dont like the get() function, find a better way of dealing with this
// return func(r io.Reader) (interface{}, error) {
// e := get()
// err := json.NewDecoder(r).Decode(e)
// return e, err
// }
// }

View File

@ -12,13 +12,3 @@ func Encoder(w io.Writer, e interface{}) error {
func Decoder(r io.Reader, e interface{}) error { func Decoder(r io.Reader, e interface{}) error {
return xml.NewDecoder(r).Decode(e) return xml.NewDecoder(r).Decode(e)
} }
// func Decoder(get func() interface{}) func(io.Reader) (interface{}, error) {
// //TODO I dont like the get() function, find a better way of dealing with this
// return func(r io.Reader) (interface{}, error) {
// e := get()
// err := xml.NewDecoder(r).Decode(e)
// return e, err
// }
// }
//