[PATCH] web: remove unused $window_length

Jelle van der Waa jelle at vdwaa.nl
Thu Dec 20 19:36:15 UTC 2018


From: Jelle van der Waa <jelle at vdwaa.nl>

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

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
-- 
2.20.1


More information about the aur-dev mailing list