Removed the unused is_chosen_year() method from the Period utility in the Mia core application.

This commit is contained in:
依瑪貓 2020-08-02 02:28:47 +08:00
parent c3fc7ad3ca
commit db4100cb9c

View File

@ -258,19 +258,6 @@ class Period:
self._data_end.year, this_year, -1)] self._data_end.year, this_year, -1)]
return after + before[::-1] return after + before[::-1]
def is_chosen_year(self, year):
"""Returns whether the specified year is the currently-chosen year.
Args:
year (str): the year.
Returns:
bool: True if the year is the currently-chosen year, or
False otherwise
"""
if self._period.spec == str(year):
return True
def today(self): def today(self):
"""Returns the specification of today. """Returns the specification of today.