]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: quic: Remove unused CUBIC_BETA_SCALE_FACTOR_SHIFT macro.
authorFrederic Lecaille <flecaille@haproxy.com>
Thu, 25 Jan 2024 06:47:46 +0000 (07:47 +0100)
committerFrederic Lecaille <flecaille@haproxy.com>
Thu, 25 Jan 2024 07:02:41 +0000 (08:02 +0100)
This macro is not used and has a confusing name.

Should be backported as far as 2.6.

src/quic_cc_cubic.c

index bd14b37c838737aea4d72d4c38a08db28ee4de9d..791987c9792cb1857776085581c2fa46bef9c66c 100644 (file)
@@ -15,7 +15,6 @@
 #define CUBIC_BETA   717 /*    CUBIC_BETA / CUBIC_BETA_SCALE = 0.7 */
 #define CUBIC_C      410 /*       CUBIC_C / CUBIC_BETA_SCALE = 0.4 */
 
-#define CUBIC_BETA_SCALE_FACTOR_SHIFT (3 * CUBIC_BETA_SCALE_SHIFT)
 #define TIME_SCALE_FACTOR_SHIFT  10
 
 /* The maximum value which may be cubed an multiplied by CUBIC_BETA */