Remove useless remove() because there is on delete casade

This commit is contained in:
Frederic Guillot 2013-06-28 21:50:46 -04:00
parent 6f2702b256
commit 66c3cdf2bf

View File

@ -242,9 +242,8 @@ function update_feed_cache_infos($feed_id, $last_modified, $etag)
function remove_feed($feed_id) function remove_feed($feed_id)
{ {
// Items are removed by a sql constraint
$db = \PicoTools\singleton('db'); $db = \PicoTools\singleton('db');
$db->table('items')->eq('feed_id', $feed_id)->remove();
return $db->table('feeds')->eq('id', $feed_id)->remove(); return $db->table('feeds')->eq('id', $feed_id)->remove();
} }