MDL32392 delete unused is_min_version() in some DB drivers

This commit is contained in:
Petr Skoda 2012-04-15 19:40:07 +02:00
parent 668a499d89
commit 54c5b1ad35
4 changed files with 1 additions and 41 deletions

View File

@ -287,19 +287,6 @@ class mssql_native_moodle_database extends moodle_database {
return $info;
}
/**
* Returns if the RDBMS server fulfills the required version
*
* @param string $version version to check against
* @return bool returns if the version is fulfilled (true) or no (false)
* @todo Delete this unused and protected method. MDL-32392
*/
protected function is_min_version($version) {
$server = $this->get_server_info();
$server = $server['version'];
return version_compare($server, $version, '>=');
}
/**
* Converts short table name {tablename} to real table name
* supporting temp tables (#) if detected

View File

@ -296,19 +296,6 @@ class oci_native_moodle_database extends moodle_database {
return $info;
}
/**
* Returns if the RDBMS server fulfills the required version
*
* @param string $version version to check against
* @return bool returns if the version is fulfilled (true) or no (false)
* @todo Delete this unused and protected method. MDL-32392
*/
protected function is_min_version($version) {
$server = $this->get_server_info();
$server = $server['version'];
return version_compare($server, $version, '>=');
}
/**
* Converts short table name {tablename} to real table name
* supporting temp tables ($this->unique_session_id based) if detected

View File

@ -262,9 +262,8 @@ class pgsql_native_moodle_database extends moodle_database {
*
* @param string $version version to check against
* @return bool returns if the version is fulfilled (true) or no (false)
* @todo Make this method private. MDL-32392
*/
protected function is_min_version($version) {
private function is_min_version($version) {
$server = $this->get_server_info();
$server = $server['version'];
return version_compare($server, $version, '>=');

View File

@ -276,19 +276,6 @@ class sqlsrv_native_moodle_database extends moodle_database {
return $info;
}
/**
* Returns if the RDBMS server fulfills the required version
*
* @param string $version version to check against
* @return bool returns if the version is fulfilled (true) or no (false)
* @todo Delete this unused and protected method. MDL-32392
*/
protected function is_min_version($version) {
$server = $this->get_server_info();
$server = $server['version'];
return version_compare($server, $version, '>=');
}
/**
* Override: Converts short table name {tablename} to real table name
* supporting temp tables (#) if detected