summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-12-31 10:48:56 +0000
committerDries Buytaert <dries@buytaert.net>2005-12-31 10:48:56 +0000
commitea2d79109595f0c936259ffacfccd904f8dcd599 (patch)
treeba709e7605b91af6bbb0c613850be03f83e88935 /includes/common.inc
parent9ff2c1b3a8c5fcbf656cc744f210fc37f16a5075 (diff)
downloadbrdo-ea2d79109595f0c936259ffacfccd904f8dcd599.tar.gz
brdo-ea2d79109595f0c936259ffacfccd904f8dcd599.tar.bz2
- Patch 41169 by Chris: got rid of expensvie object 2 array casts.
Diffstat (limited to 'includes/common.inc')
-rw-r--r--includes/common.inc44
1 files changed, 0 insertions, 44 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 6fc543633..210403561 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -490,50 +490,6 @@ function fix_gpc_magic() {
}
/**
- * @name Conversion
- * @{
- * Converts data structures to different types.
- */
-
-/**
- * Convert an associative array to an anonymous object.
- */
-function array2object($array) {
- if (is_array($array)) {
- $object = new StdClass();
- foreach ($array as $key => $value) {
- $object->$key = $value;
- }
- }
- else {
- $object = $array;
- }
-
- return $object;
-}
-
-/**
- * Convert an object to an associative array.
- */
-function object2array($object) {
- if (is_object($object)) {
- foreach ($object as $key => $value) {
- $array[$key] = $value;
- }
- }
- else {
- $array = $object;
- }
-
- return $array;
-}
-
-
-/**
- * @} End of "Conversion".
- */
-
-/**
* @name Messages
* @{
* Frequently used messages.