Commit 5a5d214de499b678802ac12c5c6cbe583a85ae36

Authored by Robert Speicher
1 parent a1e68a91

Remove unused render_full_content filter

app/controllers/application_controller.rb
... ... @@ -126,10 +126,6 @@ class ApplicationController < ActionController::Base
126 126 response.headers["Expires"] = "Fri, 01 Jan 1990 00:00:00 GMT"
127 127 end
128 128  
129   - def render_full_content
130   - @full_content = true
131   - end
132   -
133 129 def dev_tools
134 130 Rack::MiniProfiler.authorize_request
135 131 end
... ...
app/controllers/commits_controller.rb
... ... @@ -10,7 +10,6 @@ class CommitsController < ApplicationController
10 10 before_filter :authorize_code_access!
11 11 before_filter :require_non_empty_project
12 12 before_filter :load_refs, only: :index # load @branch, @tag & @ref
13   - before_filter :render_full_content
14 13  
15 14 def index
16 15 @repo = project.repo
... ...
app/controllers/protected_branches_controller.rb
... ... @@ -7,7 +7,6 @@ class ProtectedBranchesController < ApplicationController
7 7 before_filter :require_non_empty_project
8 8  
9 9 before_filter :authorize_admin_project!, only: [:destroy, :create]
10   - before_filter :render_full_content
11 10  
12 11 layout "project"
13 12  
... ...
app/controllers/refs_controller.rb
... ... @@ -10,7 +10,6 @@ class RefsController < ApplicationController
10 10  
11 11 before_filter :ref
12 12 before_filter :define_tree_vars, only: [:blob, :logs_tree]
13   - before_filter :render_full_content
14 13  
15 14 layout "project"
16 15  
... ...
app/controllers/repositories_controller.rb
... ... @@ -6,7 +6,6 @@ class RepositoriesController < ApplicationController
6 6 before_filter :authorize_read_project!
7 7 before_filter :authorize_code_access!
8 8 before_filter :require_non_empty_project
9   - before_filter :render_full_content
10 9  
11 10 layout "project"
12 11  
... ...
app/controllers/snippets_controller.rb
... ... @@ -55,7 +55,6 @@ class SnippetsController < ApplicationController
55 55  
56 56 def show
57 57 @note = @project.notes.new(noteable: @snippet)
58   - render_full_content
59 58 end
60 59  
61 60 def destroy
... ...