Skip to content

Remove unused getters from TimeValue #116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 20, 2017
Merged

Remove unused getters from TimeValue #116

merged 1 commit into from
Jul 20, 2017

Conversation

thiemowmde
Copy link
Contributor

@thiemowmde thiemowmde commented Jul 20, 2017

getYear, getMonth, and so on are all unused. Instead I store the whole timestamp string now.

I keep the parsing and rebuilding that was done before in the getTimestamp method, even if I believe this is unused. This class is used to store values as they are coming from the backend. These values should always be in a strictly fixed format. But it's hard to prove this. At least the padding of the year must be flexible.

Note that getSortKey will be removed with #115. If this is done this code can be simplified even further, I believe, to the point where we just get rid of the pad function.

@thiemowmde thiemowmde requested a review from Ladsgroup July 20, 2017 15:16
@Ladsgroup Ladsgroup merged commit 05f2d96 into master Jul 20, 2017
@thiemowmde thiemowmde deleted the timeValueGetters branch July 20, 2017 19:02
@thiemowmde thiemowmde modified the milestone: 0.9.0 Aug 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants