Removed unneeded magic setters/getters/destructors and the like.

This commit is contained in:
Simon Wisselink
2023-01-13 15:56:25 +01:00
parent cdf1ed2a50
commit 3be63a3418
4 changed files with 0 additions and 40 deletions

View File

@@ -42,12 +42,4 @@ abstract class Base
*/ */
abstract public function to_smarty_php(\Smarty\Parser\TemplateParser $parser); abstract public function to_smarty_php(\Smarty\Parser\TemplateParser $parser);
/**
* Template data object destructor
*/
public function __destruct()
{
$this->data = null;
$this->subtrees = null;
}
} }

View File

@@ -5,23 +5,9 @@ namespace Smarty;
/** /**
* class for undefined variable object * class for undefined variable object
* This class defines an object for undefined variable handling * This class defines an object for undefined variable handling
*
*/ */
class UndefinedVariable extends Variable { class UndefinedVariable extends Variable {
/**
* Returns null for not existing properties
*
* @param string $name
*
* @return null
*/
public function __get($name) {
return null;
}
/** /**
* Always returns an empty string. * Always returns an empty string.
* *

View File

@@ -30,13 +30,4 @@ class Smarty_CacheResource_Apctest extends Smarty_CacheResource_Apc
return $t ? $t : null; return $t ? $t : null;
} }
public function __sleep()
{
return array();
}
public function __wakeup()
{
$this->__construct();
}
} }

View File

@@ -29,13 +29,4 @@ class Smarty_CacheResource_Memcachetest extends Smarty_CacheResource_Memcache
return $t ? $t : null; return $t ? $t : null;
} }
public function __sleep()
{
return array();
}
public function __wakeup()
{
$this->__construct();
}
} }