From ca08d75488f46d458d5cd72a7f7a4e19baddb559 Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Sun, 17 Jul 2011 22:39:27 +0200 Subject: [PATCH] bacula-web: Removed useless Get_Dsn() function in Config class --- gui/bacula-web/includes/cfg/config.class.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/gui/bacula-web/includes/cfg/config.class.php b/gui/bacula-web/includes/cfg/config.class.php index a3398e38a4..0c06388105 100644 --- a/gui/bacula-web/includes/cfg/config.class.php +++ b/gui/bacula-web/includes/cfg/config.class.php @@ -74,18 +74,6 @@ return count( $this->catalogs ); } - public function Get_Dsn( $catalog_id ) - { - // Construct a valid dsn - $dsn = array(); - $dsn['hostspec'] = $this->catalogs[$catalog_id]["host"]; - $dsn['username'] = $this->catalogs[$catalog_id]["login"]; - $dsn['password'] = $this->catalogs[$catalog_id]["password"]; - $dsn['database'] = $this->catalogs[$catalog_id]["db_name"]; - $dsn['phptype'] = $this->catalogs[$catalog_id]["db_type"]; - return $dsn; - } - public function getDSN( $catalog_id ) { $dsn = ''; -- 2.39.5