From 4f111a27513f7811df4848773b24fe17541d1fb7 Mon Sep 17 00:00:00 2001 From: Silvio Date: Fri, 23 Jul 2010 17:54:11 -0300 Subject: Removing the perl singleton --- classes/BiblioIsisDb.php | 3 +-- classes/PerlSingleton.php | 17 ----------------- 2 files changed, 1 insertion(+), 19 deletions(-) delete mode 100644 classes/PerlSingleton.php diff --git a/classes/BiblioIsisDb.php b/classes/BiblioIsisDb.php index ee3441c..22586ed 100644 --- a/classes/BiblioIsisDb.php +++ b/classes/BiblioIsisDb.php @@ -42,8 +42,7 @@ class BiblioIsisDb implements IsisDb { } // Create a perl instance. - //$this->perl = new Perl(); - $this->perl = PerlSingleton::getInstance(); + $this->perl = new Perl(); } /** diff --git a/classes/PerlSingleton.php b/classes/PerlSingleton.php deleted file mode 100644 index c606cfe..0000000 --- a/classes/PerlSingleton.php +++ /dev/null @@ -1,17 +0,0 @@ -perl = new Perl(); - } - - public static function getInstance() { - if(self::$instance == null) { - self::$instance = new self; - } - - return self::$instance->perl; - } -} -- cgit v1.2.3