summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-12-18 11:27:44 -0800
committerBharat Mediratta <bharat@menalto.com>2009-12-18 11:27:44 -0800
commit046382c3e7f863e291d000eb2bb549474e475d1b (patch)
tree1332b56ec2e71b08e2e1a97bb25aa89f3fe88c11
parent338af4a722fb08abdf9f5b364418ceb83a329cdc (diff)
Remove some unused references to Database::instance()
-rw-r--r--modules/tag/models/tag.php3
1 files changed, 0 insertions, 3 deletions
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")