Removed the unused get_month_range() method from the period parser.

This commit is contained in:
依瑪貓 2020-07-08 08:18:57 +08:00
parent 56ae1bb29a
commit 8cefd0d4bf

View File

@ -171,22 +171,6 @@ class PeriodParser:
self.end = self.get_month_last_day(self.start)
self.description = gettext("This Month")
def set_month_range(self, year, month):
"""Calculates and returns the date range of a month.
Args:
year (int): The year.
month (int): The month.
Returns:
tuple(date): The date range of the month.
Throws:
ValueError: When the year and month are invalid
"""
self.start = date(year, month, 1)
self.end = self.get_month_last_day(self.start)
@staticmethod
def get_month_last_day(day):
"""Calculates and returns the last day of a month.