summaryrefslogtreecommitdiff
path: root/app/helpers/snippets_helper.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-03-05 17:17:49 -0500
committerRobert Speicher <rspeicher@gmail.com>2016-03-05 18:12:17 -0500
commit836d5930332797192094ce4a3c8083e96f7e8c53 (patch)
treec747507b44acc831105773a6560bd6e3694a93bb /app/helpers/snippets_helper.rb
parent28bee175dbdba8bb0ca04887d6f8d5c4d727a0bd (diff)
downloadgitlab-ce-836d5930332797192094ce4a3c8083e96f7e8c53.tar.gz
Remove `Snippet#expires_at`rs-snippets-dont-expire
This was removed from the interface in https://github.com/gitlabhq/gitlabhq/pull/6027 but its implementation lingered around for two years.
Diffstat (limited to 'app/helpers/snippets_helper.rb')
-rw-r--r--app/helpers/snippets_helper.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/app/helpers/snippets_helper.rb b/app/helpers/snippets_helper.rb
index 41ae4048992..0a5a8eb5aee 100644
--- a/app/helpers/snippets_helper.rb
+++ b/app/helpers/snippets_helper.rb
@@ -1,14 +1,4 @@
module SnippetsHelper
- def lifetime_select_options
- options = [
- ['forever', nil],
- ['1 day', "#{Date.current + 1.day}"],
- ['1 week', "#{Date.current + 1.week}"],
- ['1 month', "#{Date.current + 1.month}"]
- ]
- options_for_select(options)
- end
-
def reliable_snippet_path(snippet)
if snippet.project_id?
namespace_project_snippet_path(snippet.project.namespace,