Removed dead code.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8946 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-02-23 14:19:42 +00:00
parent 0f721f6f7b
commit 95811c8e4c
1 changed files with 1 additions and 8 deletions

View 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