Remove deprecated userCanCreate(), userCanEdit(), userCanMove(). Methods were deprecated in r19193 (2007-01-13) and are no longer used in current trunk or extensions.

This commit is contained in:
Siebrand Mazeland 2009-05-24 08:59:39 +00:00
parent 8e23949bee
commit 4d25a04481
3 changed files with 6 additions and 33 deletions

View file

@ -147,10 +147,13 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
* (bug 18522) Wrap MediaWiki:Protect-cascadeon in a div for identification
* (bug 18438) Tweak HTML for preview bar for consistency and accessibility
* (bug 18432) Updated documentation for dumpBackup.php
* Fix array logic in Sanitizer::removeHTMLtags so that it doesn't strip good tags
that were redundantly defined.
* Fix array logic in Sanitizer::removeHTMLtags so that it doesn't strip good
tags that were redundantly defined.
* (bug 14118) SpecialPage::getTitleFor does not return a localised name
* (bug 18698) Renaming non entry point maintenance scripts from .inc.php to .inc
* (bug 18698) Renaming non entry point maintenance scripts from .inc.php to
.inc
* Deprecated methods userCanCreate(), userCanEdit() and userCanMove() have been
removed
== API changes in 1.16 ==

View file

@ -38,9 +38,6 @@ class FakeTitle extends Title {
function isProtected( $action = '' ) { $this->error(); }
function userIsWatching() { $this->error(); }
function userCan( $action, $doExpensiveQueries = true ) { $this->error(); }
function userCanCreate() { $this->error(); }
function userCanEdit( $doExpensiveQueries = true ) { $this->error(); }
function userCanMove() { $this->error(); }
function isMovable() { $this->error(); }
function userCanRead() { $this->error(); }
function isTalkPage() { $this->error(); }

View file

@ -1463,33 +1463,6 @@ class Title {
__METHOD__ );
}
/**
* Can $wgUser edit this page?
* @return \type{\bool} TRUE or FALSE
* @deprecated use userCan('edit')
*/
public function userCanEdit( $doExpensiveQueries = true ) {
return $this->userCan( 'edit', $doExpensiveQueries );
}
/**
* Can $wgUser create this page?
* @return \type{\bool} TRUE or FALSE
* @deprecated use userCan('create')
*/
public function userCanCreate( $doExpensiveQueries = true ) {
return $this->userCan( 'create', $doExpensiveQueries );
}
/**
* Can $wgUser move this page?
* @return \type{\bool} TRUE or FALSE
* @deprecated use userCan('move')
*/
public function userCanMove( $doExpensiveQueries = true ) {
return $this->userCan( 'move', $doExpensiveQueries );
}
/**
* Would anybody with sufficient privileges be able to move this page?
* Some pages just aren't movable.