diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-03-21 12:17:55 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-03-21 12:17:55 +0100 |
commit | 35794877981720c8b782deaec57ea88ab31577b5 (patch) | |
tree | d59c7bdb2c365c3a90e6fcebcef625dce3c722a8 /lib/public/DB.php | |
parent | c8340ace5c22b3a3cf2132b2efbe91104aab04e9 (diff) | |
download | nextcloud-server-35794877981720c8b782deaec57ea88ab31577b5.tar.gz nextcloud-server-35794877981720c8b782deaec57ea88ab31577b5.zip |
Remove unused and deprecated methods of OCP\DB
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/public/DB.php')
-rw-r--r-- | lib/public/DB.php | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/lib/public/DB.php b/lib/public/DB.php index 23ebdceccd0..85a34ff37a0 100644 --- a/lib/public/DB.php +++ b/lib/public/DB.php @@ -61,33 +61,4 @@ class DB { return \OC_DB::prepare($query, $limit, $offset); } - /** - * Start a transaction - * @deprecated 8.1.0 use beginTransaction() of \OCP\IDBConnection - \OC::$server->getDatabaseConnection() - * @since 4.5.0 - */ - public static function beginTransaction() { - \OC::$server->getDatabaseConnection()->beginTransaction(); - } - - /** - * Commit the database changes done during a transaction that is in progress - * @deprecated 8.1.0 use commit() of \OCP\IDBConnection - \OC::$server->getDatabaseConnection() - * @since 4.5.0 - */ - public static function commit() { - \OC::$server->getDatabaseConnection()->commit(); - } - - /** - * returns the error code and message as a string for logging - * works with DoctrineException - * @return string - * @deprecated 8.1.0 use getError() of \OCP\IDBConnection - \OC::$server->getDatabaseConnection() - * @since 6.0.0 - */ - public static function getErrorMessage() { - return \OC::$server->getDatabaseConnection()->getError(); - } - } |