Created
March 7, 2014 12:02
-
-
Save rofr/9410254 to your computer and use it in GitHub Desktop.
Code from geekstream.devrexlabs.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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