[FIXED JENKINS-22142] Removed obsolete method.

Hoping nobody uses it programmatically.

Also, added @Restricted to the new one.
Merge branch 'JENKINS-22142' of github.com:daniel-beck/jenkins
Merge branch 'master' of git://github.com/jenkinsci/jenkins
[JENKINS-22142] Noting merge of #1179.