Permalink
Browse files

Remove the decrementUnreadCount function. It's broken and outside the…

… scope of this lib.
  • Loading branch information...
1 parent 770f7f0 commit 2ee1cfceae5708be0f5a37ca5d61c68c00384a99 @Tibfib committed Jul 18, 2012
Showing with 0 additions and 17 deletions.
  1. +0 −17 google-reader.js
View
@@ -540,23 +540,6 @@
});
};
- //this is a function so we can reduce the amount of ajax calls when setting an article as read. Just manually decrement the counts, don't request new numbers.
- reader.decrementUnreadCount = function (feedId, amount, callback) {
- _.each(reader.getFeeds(), function (subscription) {
- if (subscription.id === feedId || (subscription.isAll)) {
- subscription.count -= amount || 1;
- } else if (subscription.feeds && subscription.feeds.length > 0) {
- _.each(subscription.feeds, function (feed) {
- if (feed.id === feedId) {
- subscription.count -= amount || 1;
- }
- });
- }
- });
- if(callback)
- callback();
- };
-
// *************************************
// *
// * Editing Feeds

0 comments on commit 2ee1cfc

Please sign in to comment.