From dba3a36be43320f24cca24b5d6f6df1406ae8b29 Mon Sep 17 00:00:00 2001 From: Dayllan Maza Date: Tue, 19 Mar 2019 11:12:08 -0400 Subject: [PATCH] Remove block cookie stats measurement implementation When setting a cookie on IP blocks was rolled out we wanted to add some form of measurement to keep an eye on it. This patch is removing that implementation 'cause it is not needed anymore. Bug: T218596 Change-Id: I33ee164157b539560a3d88c6f3018dc013218640 --- includes/user/User.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/includes/user/User.php b/includes/user/User.php index a5f48a7643..786f2882c4 100644 --- a/includes/user/User.php +++ b/includes/user/User.php @@ -1414,10 +1414,6 @@ class User implements IDBAccessObject, UserIdentity { ] ); if ( $shouldSetCookie ) { $block->setCookie( $this->getRequest()->response() ); - - // temporary measure the use of cookies on ip blocks - $stats = MediaWikiServices::getInstance()->getStatsdDataFactory(); - $stats->increment( 'block.ipblock.setCookie.success' ); } } elseif ( $this->isLoggedIn() && $config->get( 'CookieSetOnAutoblock' ) ) { $shouldSetCookie = $block->getType() === Block::TYPE_USER && $block->isAutoblocking(); -- 2.20.1