From: Aaron Schulz Date: Fri, 16 Sep 2016 05:37:29 +0000 (-0700) Subject: Remove strictIPs(), cascadingDeletes(), and cleanupTriggers() X-Git-Tag: 1.31.0-rc.0~5472^2 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=83b573a3e83039fb38dbacbc417f37808a9fc574;p=lhc%2Fweb%2Fwiklou.git Remove strictIPs(), cascadingDeletes(), and cleanupTriggers() These DatabaseBase methods have no callers are were a mistake to begin with. They only encouraged code forking and incompatibilities among different backing DB types. Also removed stray realTimestamps() method that was left over from prior removals. Change-Id: I37bef8585151e2782d2c88b5ae1e6752109c6ac7 --- diff --git a/includes/db/DatabaseMssql.php b/includes/db/DatabaseMssql.php index 2c6db103b9..00fb800725 100644 --- a/includes/db/DatabaseMssql.php +++ b/includes/db/DatabaseMssql.php @@ -42,18 +42,6 @@ class DatabaseMssql extends DatabaseBase { protected $mPort; - public function cascadingDeletes() { - return true; - } - - public function cleanupTriggers() { - return false; - } - - public function realTimestamps() { - return false; - } - public function implicitGroupby() { return false; } diff --git a/includes/db/DatabaseOracle.php b/includes/db/DatabaseOracle.php index ee1bf65731..561dadb72f 100644 --- a/includes/db/DatabaseOracle.php +++ b/includes/db/DatabaseOracle.php @@ -176,18 +176,6 @@ class DatabaseOracle extends DatabaseBase { return 'oracle'; } - function cascadingDeletes() { - return true; - } - - function cleanupTriggers() { - return true; - } - - function strictIPs() { - return true; - } - function implicitGroupby() { return false; } diff --git a/includes/db/DatabasePostgres.php b/includes/db/DatabasePostgres.php index e5ce283cbf..1907bab5b5 100644 --- a/includes/db/DatabasePostgres.php +++ b/includes/db/DatabasePostgres.php @@ -227,18 +227,6 @@ class DatabasePostgres extends DatabaseBase { return 'postgres'; } - function cascadingDeletes() { - return true; - } - - function cleanupTriggers() { - return true; - } - - function strictIPs() { - return true; - } - function implicitGroupby() { return false; } diff --git a/includes/libs/rdbms/database/DatabaseBase.php b/includes/libs/rdbms/database/DatabaseBase.php index 2c8d239073..ef72998944 100644 --- a/includes/libs/rdbms/database/DatabaseBase.php +++ b/includes/libs/rdbms/database/DatabaseBase.php @@ -49,32 +49,9 @@ abstract class DatabaseBase extends Database { } /** - * Returns true if this database supports (and uses) cascading deletes + * Get search engine class. All subclasses of this need to implement this + * if they wish to use searching. * - * @return bool - */ - public function cascadingDeletes() { - return false; - } - /** - * Returns true if this database supports (and uses) triggers (e.g. on the page table) - * - * @return bool - */ - public function cleanupTriggers() { - return false; - } - /** - * Returns true if this database is strict about what can be put into an IP field. - * Specifically, it uses a NULL value instead of an empty string. - * - * @return bool - */ - public function strictIPs() { - return false; - } - - /** * @return string * @deprecated since 1.27; use SearchEngineFactory::getSearchEngineClass() */