diff options
-rw-r--r-- | db/feedmapper.php | 20 |
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 |