From 5cbb1dd96d153b2ac94bb592f3815e916d6c8331 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Doursenaud?= Date: Wed, 23 Apr 2014 11:07:00 +0200 Subject: [PATCH] Qual: Removed useless method The method is already in the DoliDB base class --- htdocs/core/db/pgsql.class.php | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/htdocs/core/db/pgsql.class.php b/htdocs/core/db/pgsql.class.php index f8cb36e4044..224e5ffa71d 100644 --- a/htdocs/core/db/pgsql.class.php +++ b/htdocs/core/db/pgsql.class.php @@ -448,32 +448,6 @@ class DoliDBPgsql extends DoliDB return false; } - /** - * Start transaction - * - * @return int 1 if transaction successfuly opened or already opened, 0 if error - */ - function begin() - { - if (! $this->transaction_opened) - { - $ret=$this->query("BEGIN;"); - if ($ret) - { - $this->transaction_opened++; - dol_syslog("BEGIN Transaction",LOG_DEBUG); - dol_syslog('',0,1); - } - return $ret; - } - else - { - $this->transaction_opened++; - dol_syslog('',0,1); - return 1; - } - } - /** * Validate a database transaction *