MDL-21342 deprecate unused login functions

This commit is contained in:
Petr Škoda 2013-01-04 15:17:14 +01:00
parent b28247fe90
commit c4844bf45c
2 changed files with 4 additions and 6 deletions

View file

@ -649,7 +649,6 @@ $string['error'] = 'Error';
$string['errorcreatingactivity'] = 'Unable to create an instance of activity \'{$a}\''; $string['errorcreatingactivity'] = 'Unable to create an instance of activity \'{$a}\'';
$string['errorfiletoobig'] = 'The file was bigger than the limit of {$a} bytes'; $string['errorfiletoobig'] = 'The file was bigger than the limit of {$a} bytes';
$string['errornouploadrepo'] = 'There is no upload repository enabled for this site'; $string['errornouploadrepo'] = 'There is no upload repository enabled for this site';
$string['errortoomanylogins'] = 'Sorry, you have exceeded the allowed number of login attempts. Restart your browser.';
$string['errorwhenconfirming'] = 'You are not confirmed yet because an error occurred. If you clicked on a link in an email to get here, make sure that the line in your email wasn\'t broken or wrapped. You may have to use cut and paste to reconstruct the link properly.'; $string['errorwhenconfirming'] = 'You are not confirmed yet because an error occurred. If you clicked on a link in an email to get here, make sure that the line in your email wasn\'t broken or wrapped. You may have to use cut and paste to reconstruct the link properly.';
$string['everybody'] = 'Everybody'; $string['everybody'] = 'Everybody';
$string['executeat'] = 'Execute at'; $string['executeat'] = 'Execute at';

View file

@ -36,9 +36,8 @@ defined('MOODLE_INTERNAL') || die();
* @deprecated * @deprecated
*/ */
function update_login_count() { function update_login_count() {
// note: remove 'errortoomanylogins' string from moodle.php too // TODO: delete function in Moodle 2.6
// TODO: uncomment in Moodle 2.5, delete function in Moodle 2.6 debugging('update_login_count() is deprecated, all calls need to be removed');
//debugging('update_login_count() is deprecated, all calls need to be removed');
} }
/** /**
@ -46,8 +45,8 @@ function update_login_count() {
* @deprecated * @deprecated
*/ */
function reset_login_count() { function reset_login_count() {
// TODO: uncomment in Moodle 2.5, delete function in Moodle 2.6 // TODO: delete function in Moodle 2.6
//debugging('reset_login_count() is deprecated, all calls need to be removed'); debugging('reset_login_count() is deprecated, all calls need to be removed');
} }
/** /**