1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-11 03:04:09 +02:00

[ticket/9766] Delete delete_code() from CAPTCHA classes as it's never called.

Delete phpbb_default_captcha:delete_code() and phpbb_captcha_qa::delete_code()
methods. We never call it and it has a bogus body.

PHPBB3-9766
This commit is contained in:
Andreas Fischer
2011-03-01 23:21:48 +01:00
parent 448df1cdf5
commit f0facd4c9d
2 changed files with 0 additions and 27 deletions

View File

@@ -379,7 +379,6 @@ class phpbb_captcha_qa
{
if ($this->check_answer())
{
// $this->delete_code(); commented out to allow posting.php to repeat the question
$this->solved = true;
}
else
@@ -566,20 +565,6 @@ class phpbb_captcha_qa
return $this->solved;
}
/**
* API function - clean the entry
*/
function delete_code()
{
global $db, $user;
$sql = 'DELETE FROM ' . CAPTCHA_QA_CONFIRM_TABLE . "
WHERE confirm_id = '" . $db->sql_escape($confirm_id) . "'
AND session_id = '" . $db->sql_escape($user->session_id) . "'
AND confirm_type = " . $this->type;
$db->sql_query($sql);
}
/**
* API function
*/