changes: Usage of 'noudp' & 'pleasedontudp' no longer exist
authorDerick Alangi <alangiderick@gmail.com>
Thu, 18 Jul 2019 10:51:08 +0000 (11:51 +0100)
committerDerick Alangi <alangiderick@gmail.com>
Mon, 22 Jul 2019 08:55:57 +0000 (09:55 +0100)
Since no usage exist and this was deprecated in 1.31, should it
be removed?

Now I think with the use of Phan and having $send type hinted to
a bool, if a string is used, phan will catch that? :)

Usage
=====

https://codesearch.wmflabs.org/search/?q=(%27noudp%27%7C%27pleasedontudp%27)&i=nope&files=&repos=

Change-Id: Id0482e69e2e2b1cdf0a9ece230e04323bf51324f

includes/changes/RecentChange.php
maintenance/dictionary/mediawiki.dic

index eed159d..95c9fa6 100644 (file)
@@ -369,13 +369,6 @@ class RecentChange implements Taggable {
        public function save( $send = self::SEND_FEED ) {
                global $wgPutIPinRC, $wgUseEnotif, $wgShowUpdatedMarker;
 
-               if ( is_string( $send ) ) {
-                       // Callers used to pass undocumented strings like 'noudp'
-                       // or 'pleasedontudp' instead of self::SEND_NONE (true).
-                       // @deprecated since 1.31 Use SEND_NONE instead.
-                       $send = self::SEND_NONE;
-               }
-
                $dbw = wfGetDB( DB_MASTER );
                if ( !is_array( $this->mExtra ) ) {
                        $this->mExtra = [];
index aa9cb2e..71a15bc 100644 (file)
@@ -2843,7 +2843,6 @@ notvisiblerev
 notwatched
 notwikitext
 notype
-noudp
 noupdates
 nouploadmodule
 nouser