summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-28 23:00:41 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-28 23:00:41 -0800
commitc39f80bdb412bc9cc7646de0929efe8cb5b870d4 (patch)
tree6c459de47167e38a0110973855cff9b2d2246e5c /lib
parent815e9aa283f113051268370908776c5517dab711 (diff)
downloadgitlab-ce-c39f80bdb412bc9cc7646de0929efe8cb5b870d4.tar.gz
Refactor commit calendar a bit. Fixed dates
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/commits_calendar.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/gitlab/commits_calendar.rb b/lib/gitlab/commits_calendar.rb
index a862e67a598..93256187fd2 100644
--- a/lib/gitlab/commits_calendar.rb
+++ b/lib/gitlab/commits_calendar.rb
@@ -60,14 +60,6 @@ module Gitlab
end
end
- def self.starting_year(timestamps)
- DateTime.now.to_date - 1
- end
-
- def self.starting_month(timestamps)
- Date.today.strftime("%m").to_i
- end
-
def self.last_commit_date(timestamps)
latest_commit_date(timestamps).to_formatted_s(:long).to_s
end