[BE] Snippet Controllers house cleaning
Once the snippets_vue
FF is removed (#220795 (closed)), we can clean some of the existing code in the snippets' controllers. Specifically:
-
Avoid loading the blob
in the controller'sshow
action because they're retrieved from GraphQL. (https://gitlab.com/gitlab-org/gitlab/blob/master/app/controllers/concerns/snippets_actions.rb#L58) -
Remove the controller's JSON handle in the show
action (https://gitlab.com/gitlab-org/gitlab/blob/master/app/controllers/concerns/snippets_actions.rb#L70) -
Clean existing HAML files and remove those that are not in use any more
Edited by Francisco Javier López (ex-Gitlab)