diff --git a/pkg/models/translate.go b/pkg/models/translate.go index 07f2b364..cb97a338 100644 --- a/pkg/models/translate.go +++ b/pkg/models/translate.go @@ -56,15 +56,6 @@ func (c *fromEdit) nullInt64(out *sql.NullInt64, in *int64, old *int64) { } } -func (c *fromEdit) sqlDate(out *SQLDate, in *string, old *string) { - if in != nil { - out.String = *in - out.Valid = true - } else if old != nil { - *out = SQLDate{} - } -} - func (c *fromEdit) nullUUID(out *uuid.NullUUID, in *uuid.UUID, old *uuid.UUID) { if in != nil { out.UUID = *in @@ -153,21 +144,6 @@ func (d *editDiff) nullStringEnum(old sql.NullString, new stringEnum) (oldOut *s return } -//nolint:unused -func (d *editDiff) sqlDate(old SQLDate, new *string) (oldOut *string, newOut *string) { - if old.Valid && (new == nil || *new != old.String) { - oldVal := old.String - oldOut = &oldVal - } - - if new != nil && (!old.Valid || *new != old.String) { - newVal := *new - newOut = &newVal - } - - return -} - type editValidator struct { err error }