From 046382c3e7f863e291d000eb2bb549474e475d1b Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 18 Dec 2009 11:27:44 -0800 Subject: Remove some unused references to Database::instance() --- modules/tag/models/tag.php | 3 --- 1 file changed, 3 deletions(-) (limited to 'modules') diff --git a/modules/tag/models/tag.php b/modules/tag/models/tag.php index f6cc6144..b2ce9eda 100644 --- a/modules/tag/models/tag.php +++ b/modules/tag/models/tag.php @@ -61,7 +61,6 @@ class Tag_Model extends ORM { * event for the union of all related items before and after the save. */ public function save() { - $db = Database::instance(); $related_item_ids = array(); foreach (db::build() ->select("item_id") @@ -98,8 +97,6 @@ class Tag_Model extends ORM { */ public function delete() { $related_item_ids = array(); - $db = Database::Instance(); - foreach (db::build() ->select("item_id") ->from("items_tags") -- cgit v1.2.3