Skip to content

Commit

Permalink
Remove the float32 adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Aug 30, 2019
1 parent 7bd3cc0 commit f2ee418
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
13 changes: 0 additions & 13 deletions adapters.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,6 @@ var (

// Numbers
NewAdapter(big.NewRat(1, 2), nil, nil),
NewAdapter(
float32(3.14),
func(s string) (interface{}, error) {
v, err := strconv.ParseFloat(s, 32)
if err != nil {
return nil, err
}
return float32(v), nil
},
func(v interface{}) (string, error) {
return fmt.Sprintf("%f", v), nil
},
),
NewAdapter(
int(32),
func(s string) (interface{}, error) {
Expand Down
1 change: 0 additions & 1 deletion codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ func newTestMap() map[string]interface{} {
"vstring|foo": "Hello3",
// Numbers
"vint": 32,
"vfloat32": float32(3.14159),
"vfloat64": float64(3.14159),
"vrat": big.NewRat(1, 2),
// Time
Expand Down

0 comments on commit f2ee418

Please sign in to comment.