Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Morendil committed Feb 18, 2019
1 parent 3f9e16f commit 7721e8d
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions openfisca_core/periods.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@
Since a period is a triple it can be used as a dictionary key.
"""

from __future__ import unicode_literals, print_function, division, absolute_import
from builtins import str

import calendar
import collections
import datetime
import re
from os import linesep
Expand Down Expand Up @@ -706,15 +702,6 @@ def stop(self):
day -= month_last_day
return Instant((year, month, day))

def to_json_dict(self):
if not isinstance(self[1], str):
self[1] = to_unicode(self[1])
return collections.OrderedDict((
('unit', self[0]),
('start', self[1]),
('size', self[2]),
))

@property
def unit(self):
return self[0]
Expand Down

0 comments on commit 7721e8d

Please sign in to comment.