From b62d7fe5cd0355cc1cadae146cba1cdbedc7f22a Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Tue, 8 Sep 2009 23:44:16 -0400 Subject: [PATCH] The Literal object has no need for a Mapper --- framework/Rdo/lib/Horde/Rdo/Query/Literal.php | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/framework/Rdo/lib/Horde/Rdo/Query/Literal.php b/framework/Rdo/lib/Horde/Rdo/Query/Literal.php index 035a4f833..9f29458e7 100644 --- a/framework/Rdo/lib/Horde/Rdo/Query/Literal.php +++ b/framework/Rdo/lib/Horde/Rdo/Query/Literal.php @@ -29,21 +29,14 @@ class Horde_Rdo_Query_Literal protected $_string; /** - * @var Horde_Rdo_Mapper - */ - public $mapper; - - /** * Instantiate a literal, which is just a string stored as * an instance member variable. * * @param string $string The string containing an SQL literal. - * @param Horde_Rdo_Mapper $mapper The Mapper object governing this query. */ - public function __construct($string, $mapper = null) + public function __construct($string) { $this->_string = (string)$string; - $this->setMapper($mapper); } /** @@ -53,15 +46,4 @@ class Horde_Rdo_Query_Literal { return $this->_string; } - - /** - * @param Horde_Rdo_Mapper $mapper Rdo mapper base class - */ - public function setMapper($mapper) - { - if ($mapper !== $this->mapper) { - $this->mapper = $mapper; - } - } - } -- 2.11.0