web: remove unused $window_length

Message ID 20181220193615.16817-1-jelle@vdwaa.nl
State New
Headers show
Series web: remove unused $window_length | expand

Commit Message

Jelle van der Waa Dec. 20, 2018, 7:36 p.m. UTC
From: Jelle van der Waa <jelle@vdwaa.nl>

---
 web/lib/aurjson.class.php | 1 -
 1 file changed, 1 deletion(-)

Patch

diff --git a/web/lib/aurjson.class.php b/web/lib/aurjson.class.php
index c51e9c2..d0091f1 100644
--- a/web/lib/aurjson.class.php
+++ b/web/lib/aurjson.class.php
@@ -152,7 +152,6 @@  class AurJSON {
 			return false;
 		}
 
-		$window_length = config_get("ratelimit", "window_length");
 		$this->update_ratelimit($ip);
 		$stmt = $this->dbh->prepare("
 			SELECT Requests FROM ApiRateLimit