summaryrefslogtreecommitdiff
path: root/app/helpers/visibility_level_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/visibility_level_helper.rb')
-rw-r--r--app/helpers/visibility_level_helper.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/app/helpers/visibility_level_helper.rb b/app/helpers/visibility_level_helper.rb
index 304b58d232a..a7b9e17c898 100644
--- a/app/helpers/visibility_level_helper.rb
+++ b/app/helpers/visibility_level_helper.rb
@@ -23,8 +23,6 @@ module VisibilityLevelHelper
project_visibility_level_description(level)
when Group
group_visibility_level_description(level)
- when Snippet
- snippet_visibility_level_description(level, form_model)
end
end
@@ -50,21 +48,6 @@ module VisibilityLevelHelper
end
end
- def snippet_visibility_level_description(level, snippet = nil)
- case level
- when Gitlab::VisibilityLevel::PRIVATE
- if snippet.is_a? ProjectSnippet
- _("The snippet is visible only to project members.")
- else
- _("The snippet is visible only to me.")
- end
- when Gitlab::VisibilityLevel::INTERNAL
- _("The snippet is visible to any logged in user.")
- when Gitlab::VisibilityLevel::PUBLIC
- _("The snippet can be accessed without any authentication.")
- end
- end
-
# Note: these messages closely mirror the form validation strings found in the project
# model and any changes or additons to these may also need to be made there.
def disallowed_project_visibility_level_description(level, project)