summaryrefslogtreecommitdiff
path: root/lib/gitlab/utils.rb
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-08-19 16:57:25 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-08-19 16:57:25 +0800
commitf3e8b8881463bd30aa50085a45f5db96d400d3e7 (patch)
tree72d2f8ba190869be8db9174255eb0efdbe07126d /lib/gitlab/utils.rb
parentec4549e4b5ffcc608041fd7f71cf0aa8dc18151f (diff)
downloadgitlab-ce-f3e8b8881463bd30aa50085a45f5db96d400d3e7.tar.gz
Use travel_to instead of dependency injection, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5734#note_14056642
Diffstat (limited to 'lib/gitlab/utils.rb')
-rw-r--r--lib/gitlab/utils.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/gitlab/utils.rb b/lib/gitlab/utils.rb
index 4d1bd16eb95..e59ead5d76c 100644
--- a/lib/gitlab/utils.rb
+++ b/lib/gitlab/utils.rb
@@ -13,10 +13,5 @@ module Gitlab
def force_utf8(str)
str.force_encoding(Encoding::UTF_8)
end
-
- # The same as Time.now but using this would make it easier to test
- def now
- Time.now
- end
end
end