aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r--engine/lib/entities.php17
1 files changed, 1 insertions, 16 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 3ba416453..cac2e2959 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -13,7 +13,7 @@
* @global array $ENTITY_CACHE
* @access private
*/
-$ENTITY_CACHE = NULL;
+$ENTITY_CACHE = array();
/**
* Cache subtypes and related class names once loaded.
@@ -24,21 +24,6 @@ $ENTITY_CACHE = NULL;
$SUBTYPE_CACHE = NULL;
/**
- * Initialise the entity cache.
- *
- * @return void
- * @todo remove this.
- * @access private
- */
-function initialise_entity_cache() {
- global $ENTITY_CACHE;
-
- if (!$ENTITY_CACHE) {
- $ENTITY_CACHE = array();
- }
-}
-
-/**
* Invalidate this class's entry in the cache.
*
* @param int $guid The entity guid