summaryrefslogtreecommitdiffstats
path: root/db/feedmapper.php
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-04-04 13:45:33 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-04-04 13:45:33 +0200
commit180b36f9b234e68c9ab314d67b23f13548790c6c (patch)
tree671823d4cd90d4a7a7ffd0750c6a1fcc9bf49b3e /db/feedmapper.php
parent1f2391b0cdf8e7a9f8d922c7c2f71acfc4bc6388 (diff)
deleted old code that i forgot to delete
Diffstat (limited to 'db/feedmapper.php')
-rw-r--r--db/feedmapper.php20
1 files changed, 0 insertions, 20 deletions
diff --git a/db/feedmapper.php b/db/feedmapper.php
index 108494613..7f0466647 100644
--- a/db/feedmapper.php
+++ b/db/feedmapper.php
@@ -122,25 +122,5 @@ class FeedMapper extends Mapper implements IMapper {
}
- public function getReadOlderThanThreshold($threshold){
-
- // we want items that are not starred and not unread
- $status = StatusFlag::STARRED | StatusFlag::UNREAD;
- $sql = 'SELECT * FROM `*PREFIX*news_items` ' .
- 'WHERE NOT ((`status` & ?) > 0)';
-
- $params = array($status);
- return $this->findAllRows($sql, $params, $threshold);
- }
-
-
- public function deleteReadOlderThanId($id){
- $status = StatusFlag::STARRED | StatusFlag::UNREAD;
- $sql = 'DELETE FROM `*PREFIX*news_items` WHERE `id` < ? ' .
- 'AND NOT ((`status` & ?) > 0)';
- $params = array($id, $status);
- $this->execute($sql, $params);
- }
-
} \ No newline at end of file