8000 Merge pull request #13320 from anntzer/datesunused · matplotlib/matplotlib@effc3bf · GitHub
[go: up one dir, main page]

Skip to content

Commit effc3bf

Browse files
authored
Merge pull request #13320 from anntzer/datesunused
Kill some private, unused functions in dates.py.
2 parents 64c84b4 + 188faa1 commit effc3bf

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

lib/matplotlib/dates.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1868,24 +1868,6 @@ def _get_interval(self):
18681868
return self._interval
18691869

18701870

1871-
def _close_to_dt(d1, d2, epsilon=5):
1872-
"""
1873-
Assert that datetimes *d1* and *d2* are within *epsilon* microseconds.
1874-
"""
1875-
delta = d2 - d1
1876-
mus = abs(delta.total_seconds() * 1e6)
1877-
assert mus < epsilon
1878-
1879-
1880-
def _close_to_num(o1, o2, epsilon=5):
1881-
"""
1882-
Assert that float ordinals *o1* and *o2* are within *epsilon*
1883-
microseconds.
1884-
"""
1885-
delta = abs((o2 - o1) * MUSECONDS_PER_DAY)
1886-
assert delta < epsilon
1887-
1888-
18891871
def epoch2num(e):
18901872
"""
18911873
Convert an epoch or sequence of epochs to the new date format,

0 commit comments

Comments
 (0)
0