OSDN Git Service

Remove unused render_full_content filter
authorRobert Speicher <rspeicher@gmail.com>
Thu, 20 Sep 2012 18:43:38 +0000 (14:43 -0400)
committerRobert Speicher <rspeicher@gmail.com>
Wed, 26 Sep 2012 20:32:22 +0000 (16:32 -0400)
app/controllers/application_controller.rb
app/controllers/commits_controller.rb
app/controllers/protected_branches_controller.rb
app/controllers/refs_controller.rb
app/controllers/repositories_controller.rb
app/controllers/snippets_controller.rb

index 5ac5c63..a3eb3e3 100644 (file)
@@ -126,10 +126,6 @@ class ApplicationController < ActionController::Base
     response.headers["Expires"] = "Fri, 01 Jan 1990 00:00:00 GMT"
   end
 
-  def render_full_content
-    @full_content = true
-  end
-
   def dev_tools
     Rack::MiniProfiler.authorize_request
   end
index 83404bd..712b842 100644 (file)
@@ -10,7 +10,6 @@ class CommitsController < ApplicationController
   before_filter :authorize_code_access!
   before_filter :require_non_empty_project
   before_filter :load_refs, only: :index # load @branch, @tag & @ref
-  before_filter :render_full_content
 
   def index
     @repo = project.repo
index 78c9c9e..2556f09 100644 (file)
@@ -7,7 +7,6 @@ class ProtectedBranchesController < ApplicationController
   before_filter :require_non_empty_project
 
   before_filter :authorize_admin_project!, only: [:destroy, :create]
-  before_filter :render_full_content
 
   layout "project"
 
index f9cd473..5e36be3 100644 (file)
@@ -10,7 +10,6 @@ class RefsController < ApplicationController
 
   before_filter :ref
   before_filter :define_tree_vars, only: [:blob, :logs_tree]
-  before_filter :render_full_content
 
   layout "project"
 
index cd20677..583edf8 100644 (file)
@@ -6,7 +6,6 @@ class RepositoriesController < ApplicationController
   before_filter :authorize_read_project!
   before_filter :authorize_code_access!
   before_filter :require_non_empty_project
-  before_filter :render_full_content
 
   layout "project"
 
index b00c928..a38fd52 100644 (file)
@@ -55,7 +55,6 @@ class SnippetsController < ApplicationController
 
   def show
     @note = @project.notes.new(noteable: @snippet)
-    render_full_content
   end
 
   def destroy