Skip to content

Commit

Permalink
Remove unused unifyDatetime (#315)
Browse files Browse the repository at this point in the history
This function unused since 8c2dad7.
  • Loading branch information
y-yagi authored Sep 6, 2021
1 parent 7903983 commit f50d86c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"os"
"reflect"
"strings"
"time"
)

// Unmarshaler is the interface implemented by objects that can unmarshal a
Expand Down Expand Up @@ -346,14 +345,6 @@ func (md *MetaData) unifySliceArray(data, rv reflect.Value) error {
return nil
}

func (md *MetaData) unifyDatetime(data interface{}, rv reflect.Value) error {
if _, ok := data.(time.Time); ok {
rv.Set(reflect.ValueOf(data))
return nil
}
return badtype("time.Time", data)
}

func (md *MetaData) unifyString(data interface{}, rv reflect.Value) error {
if s, ok := data.(string); ok {
rv.SetString(s)
Expand Down

0 comments on commit f50d86c

Please sign in to comment.