From: Aaron Schulz Date: Mon, 19 Sep 2016 21:25:35 +0000 (-0700) Subject: Remove unused DatabaseBase::debug() method X-Git-Tag: 1.31.0-rc.0~5468^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dcompta/operations/modifier.php?a=commitdiff_plain;h=09f833b39a57ef78149224c415d84e4a783857bd;p=lhc%2Fweb%2Fwiklou.git Remove unused DatabaseBase::debug() method This just trivially wrapped getFlags()/setFlags() anyway Change-Id: Iab5b508f6746098b66da00c8bf038215cb2359ef --- diff --git a/includes/libs/rdbms/database/DatabaseBase.php b/includes/libs/rdbms/database/DatabaseBase.php index ef72998944..e008705048 100644 --- a/includes/libs/rdbms/database/DatabaseBase.php +++ b/includes/libs/rdbms/database/DatabaseBase.php @@ -29,25 +29,6 @@ * @ingroup Database */ abstract class DatabaseBase extends Database { - /** - * Boolean, controls output of large amounts of debug information. - * @param bool|null $debug - * - true to enable debugging - * - false to disable debugging - * - omitted or null to do nothing - * - * @return bool Previous value of the flag - * @deprecated since 1.28; use setFlag() - */ - public function debug( $debug = null ) { - $res = $this->getFlag( DBO_DEBUG ); - if ( $debug !== null ) { - $debug ? $this->setFlag( DBO_DEBUG ) : $this->clearFlag( DBO_DEBUG ); - } - - return $res; - } - /** * Get search engine class. All subclasses of this need to implement this * if they wish to use searching.