Unneeded require statements.
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 23 Feb 2009 07:08:53 +0000 (00:08 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 23 Feb 2009 07:08:53 +0000 (00:08 -0700)
imp/lib/Mime/Viewer/plain.php
imp/lib/Quota.php
imp/lib/Quota/sql.php
imp/lib/Sentmail/sql.php

index 86f0ebc..e875c14 100644 (file)
@@ -262,7 +262,6 @@ class IMP_Horde_Mime_Viewer_plain extends Horde_Mime_Viewer_plain
 
         /* Don't want to use convert_uudecode() here as there may be multiple
          * files residing in the text. */
-        require_once 'Mail/mimeDecode.php';
         $files = &Mail_mimeDecode::uudecode($text);
         if (empty($files)) {
             return null;
index 3948b8b..4627228 100644 (file)
@@ -68,7 +68,6 @@ class IMP_Quota
     static public function getInstance($driver, $params = array())
     {
         $driver = basename($driver);
-        require_once dirname(__FILE__) . '/Quota/' . $driver . '.php';
         $class = 'IMP_Quota_' . $driver;
 
         if (class_exists($class)) {
index ecba1e0..92158e1 100644 (file)
@@ -66,7 +66,6 @@ class IMP_Quota_sql extends IMP_Quota
     protected function _connect()
     {
         if (!$this->_connected) {
-            require_once 'DB.php';
             $this->_db = &DB::connect($this->_params,
                                       array('persistent' => !empty($this->_params['persistent']),
                                             'ssl' => !empty($this->_params['ssl'])));
index e9b5000..97abbc0 100644 (file)
@@ -55,7 +55,6 @@ class IMP_Sentmail_sql extends IMP_Sentmail
         }
 
         /* Connect to the SQL server using the supplied parameters. */
-        require_once 'DB.php';
         $this->_db = DB::connect($this->_params,
                                  array('persistent' => !empty($this->_params['persistent']),
                                        'ssl' => !empty($this->_params['ssl'])));