Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removing debug information from OPT-XML.

  • Loading branch information...
commit cd6058ca078620eac595da501bb2bb2cf1353dff 1 parent d650527
@zyxist zyxist authored
View
1  lib/Opt/Xml/Cdata.php
@@ -31,7 +31,6 @@ class Opt_Xml_Cdata extends Opt_Xml_Node
*/
public function __construct($cdata)
{
- parent::__construct();
self::$mode != Opt_Class::QUIRKS_MODE and $this->_validate($cdata);
$this->_text = $cdata;
} // end __construct();
View
1  lib/Opt/Xml/Element.php
@@ -62,7 +62,6 @@ class Opt_Xml_Element extends Opt_Xml_Scannable
*/
public function __construct($name)
{
- parent::__construct();
$this->setName($name);
} // end __construct();
View
1  lib/Opt/Xml/Expression.php
@@ -34,7 +34,6 @@ class Opt_Xml_Expression extends Opt_Xml_Node
*/
public function __construct($expression)
{
- parent::__construct();
$this->_expression = $expression;
} // end __construct();
View
57 lib/Opt/Xml/Node.php
@@ -40,62 +40,6 @@
*/
protected $_next = null;
- private $_cntx;
-
- /**
- * OPT-XML object counter for debugging purposes.
- * @var integer
- */
- static private $_objCount = 0;
-
- /**
- * OPT-XML object registry
- * @var array
- */
- static private $_registry = array();
-
- /**
- * Constructs the new node object.
- */
- public function __construct()
- {
- self::$_objCount++;
- $this->_cntx = self::$_objCount;
- self::$_registry[self::$_objCount] = $this;
- } // end __construct();
-
- /**
- * Destroys the node object.
- */
- public function __destruct()
- {
- self::$_objCount--;
- } // end __destruct();
-
- /**
- * Returns the object counter for debugging purposes.
- *
- * @internal
- * @static
- * @return integer The number of currently existing OPT-XML objects.
- */
- static public function getObjectCount()
- {
- return self::$_objCount;
- } // end getObjectCount();
-
- /**
- * Returns the object registry.
- *
- * @internal
- * @static
- * @return array
- */
- static public function getObjectRegistry()
- {
- return self::$_registry;
- } // end getObjectRegistry();
-
/**
* Sets the parent of the current node. USE WITH CAUTION!
*
@@ -196,7 +140,6 @@ public function dispose()
*/
protected function _dispose()
{
- unset(self::$_registry[$this->_cntx]);
$this->unmount();
$this->_parent = null;
$this->_previous = null;
View
8 lib/Opt/Xml/Root.php
@@ -26,14 +26,6 @@ class Opt_Xml_Root extends Opt_Xml_Scannable
private $_namespaces = array();
/**
- * Constructs the root node.
- */
- public function __construct()
- {
- parent::__construct();
- } // end __construct();
-
- /**
* Overwritten parent setter - the root node cannot have parents.
*
* @param Opt_Xml_Node $parent The new parent (ignored).
View
8 lib/Opt/Xml/Scannable.php
@@ -59,14 +59,6 @@
private $_prototypes;
/**
- * Creates the scannable node.
- */
- public function __construct()
- {
- parent::__construct();
- } // end __construct();
-
- /**
* Appends a new child to the end of the children list. The method
* is DOM-compatible.
*
View
1  lib/Opt/Xml/Text.php
@@ -29,7 +29,6 @@ class Opt_Xml_Text extends Opt_Xml_Scannable
*/
public function __construct($cdata = null)
{
- parent::__construct();
if(!is_null($cdata))
{
$this->appendData($cdata);
Please sign in to comment.
Something went wrong with that request. Please try again.