Skip to content

Commit 7766cc8

Browse files
committed
Remove unnecessary Dates.value() methods
The Dates stdlib already defines a method that does the same thing for any `Period`.
1 parent 1a3eefb commit 7766cc8

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/NumpyDates/InlineTimeDelta64.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ end
2424

2525
# accessors
2626

27-
Dates.value(d::InlineTimeDelta64) = d.value
28-
2927
unitpair(::InlineTimeDelta64{U}) where {U} = unitpair(U)
3028
unitpair(::Type{InlineTimeDelta64{U}}) where {U} = unitpair(U)
3129

src/NumpyDates/TimeDelta64.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ end
2323

2424
# accessors
2525

26-
Dates.value(d::TimeDelta64) = d.value
27-
2826
unitpair(d::TimeDelta64) = d.unit
2927

3028
# constructors

0 commit comments

Comments
 (0)