Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 188faa1

Browse files
committed
Kill some private, unused functions in dates.py.
_close_to_dt has been unused since 2012, _close_to_num has never been used in the history of the repo.
1 parent 64c84b4 commit 188faa1

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)