diff options
author | Daniel <darthdaniel85@gmail.com> | 2013-11-17 14:48:12 -0800 |
---|---|---|
committer | Daniel <darthdaniel85@gmail.com> | 2013-11-17 14:48:12 -0800 |
commit | 7a047bedd98b47a82263e81bf62ef3890947f6ac (patch) | |
tree | b5c80dedfb863465d9ed615cb9de21cb29789fb2 /framework/PradoBase.php | |
parent | b0c2fecd42bd8b95f2535a525b035f27aebde287 (diff) |
Micro-optimizations:
Removing unnecessary static functions serialize and unserialize from PradoBase and updating its dependencies with the native php's.
Diffstat (limited to 'framework/PradoBase.php')
-rw-r--r-- | framework/PradoBase.php | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/framework/PradoBase.php b/framework/PradoBase.php index 84826f15..2da331c9 100644 --- a/framework/PradoBase.php +++ b/framework/PradoBase.php @@ -191,30 +191,6 @@ class PradoBase } /** - * 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 * or a namespace referring to the path of the component class file. |