Skip to content

Commit 880726f

Browse files
author
Ignacio Van Droogenbroeck
committed
chore: remove unused isEmptyValue method
The method became dead code after PR #50 switched Omit() to call isEmptyValueHint directly.
1 parent e335f81 commit 880726f

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

types.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -335,10 +335,6 @@ type isZeroer interface {
335335

336336
var isZeroerType = reflect.TypeOf((*isZeroer)(nil)).Elem()
337337

338-
func (e *Encoder) isEmptyValue(v reflect.Value) bool {
339-
return e.isEmptyValueHint(v, true)
340-
}
341-
342338
func (e *Encoder) isEmptyValueHint(v reflect.Value, maybeZeroer bool) bool {
343339
kind := v.Kind()
344340

0 commit comments

Comments
 (0)