[blam] ChannelCollection.RefreshAll(int) is no longer used. Delete
- From: Carlos Martín Nieto <cmartin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [blam] ChannelCollection.RefreshAll(int) is no longer used. Delete
- Date: Sun, 6 Jun 2010 18:31:28 +0000 (UTC)
commit 9b21eec55224826277d7af94ed71b3eb95e87301
Author: Carlos MartÃn Nieto <carlos cmartin tk>
Date: Sun Jun 6 19:00:29 2010 +0200
ChannelCollection.RefreshAll(int) is no longer used. Delete
src/ChannelCollection.cs | 28 ----------------------------
1 files changed, 0 insertions(+), 28 deletions(-)
---
diff --git a/src/ChannelCollection.cs b/src/ChannelCollection.cs
index 74d26d3..1d5870a 100644
--- a/src/ChannelCollection.cs
+++ b/src/ChannelCollection.cs
@@ -286,34 +286,6 @@ namespace Imendio.Blam {
StartRefreshThreads (nrOfChannels);
}
-
- public void RefreshAll (int refreshRate)
- {
- int nrOfChannels = 0;
-
- foreach (Channel channel in mChannels) {
- TimeSpan span = DateTime.Now.Subtract (channel.LastRefreshed);
-
- if (span.TotalSeconds >= refreshRate * 60) {
- QueueChannelRefresh (channel);
- nrOfChannels++;
- }
- }
-
- foreach(ChannelGroup group in Groups){
- if(group.Channels.Count == 0)
- continue;
- foreach(Channel channel in group.Channels){
- TimeSpan span = DateTime.Now.Subtract(channel.LastRefreshed);
- if(span.TotalSeconds >= refreshRate * 60){
- QueueChannelRefresh(channel);
- nrOfChannels++;
- }
- }
- }
-
- StartRefreshThreads (nrOfChannels);
- }
/* Used to cross-mark as read */
public void MarkItemIdAsReadInAllChannels (Channel channel, string id)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]