Use scope.

git-svn-id: http://svn.redmine.org/redmine/trunk@13692 e93f8b46-1217-0410-a6f0-8f06a7374b81
Removed broken and unused method added in r5313.

git-svn-id: http://svn.redmine.org/redmine/trunk@13693 e93f8b46-1217-0410-a6f0-8f06a7374b81