Skip to content

Instantly share code, notes, and snippets.

@rofr
Created March 7, 2014 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rofr/9410254 to your computer and use it in GitHub Desktop.
Save rofr/9410254 to your computer and use it in GitHub Desktop.
Code from geekstream.devrexlabs.com
public bool RemoveFeedById(int id)
{
Feed feedToRemove;
bool feedExists = TryGetFeedById(id, out feedToRemove);
if (feedExists)
{
_statistics.TotalFeeds--;
_statistics.TotalFeedItems -= feedToRemove.Items.Count;
_feeds[id-1] = null;
_mostRecentItems.RemoveItems(feedToRemove.Items);
RemoveFeedFromSearchIndex(feedToRemove);
}
return feedExists;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment