From 83ee85b447021da73891abdc3a92f4fd60feeaf8 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Sat, 27 Oct 2018 21:44:36 +0200 Subject: [PATCH] Remove unused showFloodWarning function --- Changelog | 1 + app/Http/Controllers/BasePageController.php | 11 ----------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/Changelog b/Changelog index d030b75be..ad7f7996c 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2018-10-27 DariusIII + * Chg: Remove unused showFloodWarning function * Chg: Simplify ClearanceMiddleware checks 2018-10-26 DariusIII * Chg: Move patches from mysql to patches folder as we only support mysql so no need for one more folder diff --git a/app/Http/Controllers/BasePageController.php b/app/Http/Controllers/BasePageController.php index be42cd83a..fa0b2383f 100644 --- a/app/Http/Controllers/BasePageController.php +++ b/app/Http/Controllers/BasePageController.php @@ -134,17 +134,6 @@ class BasePageController extends Controller $this->smarty->assign('site', $this->settings); } - /** - * Done in html here to reduce any smarty processing burden if a large flood is underway. - * - * @param int $seconds - */ - public function showFloodWarning($seconds = 5): void - { - header('Retry-After: '.$seconds); - $this->show503(); - } - /** * @return bool */