From patchwork Thu Dec 20 19:36:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jelle van der Waa X-Patchwork-Id: 905 Return-Path: Delivered-To: patchwork@archlinux.org Received: from apollo.archlinux.org (localhost [127.0.0.1]) by apollo.archlinux.org (Postfix) with ESMTP id 3F0EE9CBF8DB for ; Thu, 20 Dec 2018 19:36:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on apollo X-Spam-Level: X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00=-1,DKIM_INVALID=0.1, DKIM_SIGNED=0.1,MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3 autolearn=ham autolearn_force=no version=3.4.2 X-Spam-BL-Results: [127.0.9.2] [127.0.0.11] Received: from orion.archlinux.org (orion.archlinux.org [IPv6:2a01:4f8:160:6087::1]) by apollo.archlinux.org (Postfix) with ESMTPS for ; Thu, 20 Dec 2018 19:36:26 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 0A37EF7E21BE2; Thu, 20 Dec 2018 19:36:25 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [5.9.250.164]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS; Thu, 20 Dec 2018 19:36:25 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id D421A2CC26; Thu, 20 Dec 2018 19:36:24 +0000 (UTC) Authentication-Results: luna.archlinux.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=vdwaa-nl.20150623.gappssmtp.com header.i=@vdwaa-nl.20150623.gappssmtp.com header.b=WVMpJdaP Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 5475E2CC25 for ; Thu, 20 Dec 2018 19:36:23 +0000 (UTC) Received: from orion.archlinux.org (orion.archlinux.org [IPv6:2a01:4f8:160:6087::1]) by luna.archlinux.org (Postfix) with ESMTPS for ; Thu, 20 Dec 2018 19:36:23 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 085CAF7E21BDF for ; Thu, 20 Dec 2018 19:36:19 +0000 (UTC) Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS for ; Thu, 20 Dec 2018 19:36:18 +0000 (UTC) Received: by mail-ed1-x52a.google.com with SMTP id d39so2698104edb.12 for ; Thu, 20 Dec 2018 11:36:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vdwaa-nl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1sV8bkZD72WmV8/C2kVcC1SepSLUePI7n93GecSbnog=; b=WVMpJdaPzSydkEATbZjGuFbK4Ik+ojmiF5Amil2K++5110GDuarRRmBlyY9VX3zcMz HVLI3qle2t1iLKypEFTTPatcSuOLebvtpEH7GVT0QuJHI1zTvy0R/1uFw7+0s/ANcnFD aMgt5bl5dHMt6DA3IfltlwmZBZUvUYAU40GL+8cEEtOWEXnIgcavhv5bZuVaY2bVflVm mBYknOh+bNbzJ4hKL5FECQeXQPS/Hwm3EvxqOrq/Tf2C5C5sr5eQ8I2zmYSSw5XUL1qi RxsGTFXN2Mqf5L/tCIcFd0t0h9JEFI+2c6EfsTSXRRjIxUeDReMlEjl960snHy6BeRrs zyCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1sV8bkZD72WmV8/C2kVcC1SepSLUePI7n93GecSbnog=; b=PNMNaFHSLEFj1ZiFWJdZ99/0PxafzS5HPvEudzHn/Vs5eVk+8BnTyUT6mz7RNXrnHD JqCAsk5XiUyPIWD+CnKpE+yMHPGsSbd6OUmZ9s78e2QS9GlCLqMyYZ+dHk6qSnBKY6QB snlDejbzHGcKsnqGhv+pbl8o9H8S8JH/DjDVjl3nZLb3mk0d3zlpzoaCiuLGyzU57g+x rLWCfYvuCxyduBEQRO0ac44TYKA97icZ95VLAp7BJYmQsQNtMbcAFPhmYw2XuMJeOFfe P1NuZyC03FUmNoEMDgaA4xijKEYhca3oN5P+P9+Nhj9sqGqL/j7h5yr2YWeSHZaw6iio aBLg== X-Gm-Message-State: AA+aEWZ7nHG9GZR0PfBKSbfwgV6N8IWu1o+5kYIdq/I5KXnmDwufE9gU eusLdQt7OlgSuf8VvX8OAAHw2UsQuF0dPQ== X-Google-Smtp-Source: AFSGD/WMHI9PvYPO3b13I5P0kPVOxBrtzewIDix3Hi91o5xaeZMol+XraqFMCiRgnywMENd+d7JGyg== X-Received: by 2002:a17:906:6b99:: with SMTP id l25-v6mr19984532ejr.154.1545334575637; Thu, 20 Dec 2018 11:36:15 -0800 (PST) Received: from localhost.localdomain (53541122.cm-6-5a.dynamic.ziggo.nl. [83.84.17.34]) by smtp.gmail.com with ESMTPSA id t24sm6287084edb.7.2018.12.20.11.36.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Dec 2018 11:36:14 -0800 (PST) From: Jelle van der Waa X-Google-Original-From: Jelle van der Waa To: aur-dev@archlinux.org Subject: [PATCH] web: remove unused $window_length Date: Thu, 20 Dec 2018 20:36:15 +0100 Message-Id: <20181220193615.16817-1-jelle@vdwaa.nl> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-BeenThere: aur-dev@archlinux.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Arch User Repository \(AUR\) Development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: aur-dev-bounces@archlinux.org Sender: "aur-dev" From: Jelle van der Waa --- 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