]> source.dussan.org Git - redmine.git/commitdiff
Removed dead code.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 23 Feb 2012 14:19:42 +0000 (14:19 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 23 Feb 2012 14:19:42 +0000 (14:19 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8946 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/projects_controller.rb

index 44e77bc620ee449e68594e43d1fc95b06742eb00..eea8aca147e31a04f20b07d77012d3ee493f0dc9 100644 (file)
@@ -242,14 +242,7 @@ class ProjectsController < ApplicationController
     @project = nil
   end
 
-private
-  def find_optional_project
-    return true unless params[:id]
-    @project = Project.find(params[:id])
-    authorize
-  rescue ActiveRecord::RecordNotFound
-    render_404
-  end
+  private
 
   # Validates parent_id param according to user's permissions
   # TODO: move it to Project model in a validation that depends on User.current