From 7a047bedd98b47a82263e81bf62ef3890947f6ac Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 17 Nov 2013 14:48:12 -0800 Subject: Micro-optimizations: Removing unnecessary static functions serialize and unserialize from PradoBase and updating its dependencies with the native php's. --- framework/PradoBase.php | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'framework/PradoBase.php') diff --git a/framework/PradoBase.php b/framework/PradoBase.php index 84826f15..2da331c9 100644 --- a/framework/PradoBase.php +++ b/framework/PradoBase.php @@ -190,30 +190,6 @@ class PradoBase return PRADO_DIR; } - /** - * Serializes a data. - * The original PHP serialize function has a bug that may not serialize - * properly an object. - * @param mixed data to be serialized - * @return string the serialized data - */ - public static function serialize($data) - { - return serialize($data); - } - - /** - * Unserializes a data. - * The original PHP unserialize function has a bug that may not unserialize - * properly an object. - * @param string data to be unserialized - * @return mixed unserialized data, null if unserialize failed - */ - public static function unserialize($str) - { - return unserialize($str); - } - /** * Creates a component with the specified type. * A component type can be either the component class name -- cgit v1.2.3