Skip to content

Commit 2bf65c5

Browse files
committed
rm extra func
1 parent 398bb40 commit 2bf65c5

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

go/arrow/datatype_fixedwidth.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -325,22 +325,6 @@ func (u TimeUnit) Multiplier() time.Duration {
325325

326326
func (u TimeUnit) String() string { return [...]string{"s", "ms", "us", "ns"}[uint(u)&3] }
327327

328-
var _strToTimeUnit = map[string]TimeUnit{
329-
"s": Second,
330-
"ms": Millisecond,
331-
"us": Microsecond,
332-
"ns": Nanosecond,
333-
}
334-
335-
// TimeUnitFromString is the reverse of TimeUnit.String
336-
func TimeUnitFromString(s string) (TimeUnit, error) {
337-
if v, ok := _strToTimeUnit[s]; ok {
338-
return v, nil
339-
}
340-
341-
return 0, fmt.Errorf("unsupported time unit: %q", s)
342-
}
343-
344328
type TemporalWithUnit interface {
345329
FixedWidthDataType
346330
TimeUnit() TimeUnit

0 commit comments

Comments
 (0)