Commit 9af9cf32 authored by Stan Hu's avatar Stan Hu

Merge branch 'vh-snippets-content-types' into 'master'

Remove unused Snippets content_types method

See merge request gitlab-org/gitlab!26306
parents ef482c91 b51992ee
...@@ -188,14 +188,6 @@ class Snippet < ApplicationRecord ...@@ -188,14 +188,6 @@ class Snippet < ApplicationRecord
end end
end end
def self.content_types
[
".rb", ".py", ".pl", ".scala", ".c", ".cpp", ".java",
".haml", ".html", ".sass", ".scss", ".xml", ".php", ".erb",
".js", ".sh", ".coffee", ".yml", ".md"
]
end
def blob def blob
@blob ||= Blob.decorate(SnippetBlob.new(self), self) @blob ||= Blob.decorate(SnippetBlob.new(self), self)
end end
......
---
title: Remove unused Snippets#content_types method
merge_request: 26306
author:
type: other
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment