[blam/wcf] Delete references to the old libraries from the code



commit dba62aa0b6010f128e79b82e7f063e866f044233
Author: Carlos Martín Nieto <carlos cmartin tk>
Date:   Mon Sep 6 22:38:51 2010 +0100

    Delete references to the old libraries from the code

 src/Channel.cs     |    2 -
 src/FeedUpdater.cs |    2 -
 src/Item.cs        |   58 ----------------------------------------------------
 3 files changed, 0 insertions(+), 62 deletions(-)
---
diff --git a/src/Channel.cs b/src/Channel.cs
index 08442a0..5bbc867 100644
--- a/src/Channel.cs
+++ b/src/Channel.cs
@@ -4,8 +4,6 @@
 // (C) 2004 Imendio AB
 // 
 
-using RSS;
-using Atom;
 using System.Collections;
 using System;
 using System.Net;
diff --git a/src/FeedUpdater.cs b/src/FeedUpdater.cs
index 47652b2..fef4273 100644
--- a/src/FeedUpdater.cs
+++ b/src/FeedUpdater.cs
@@ -5,8 +5,6 @@
 // (C) 2004 Imendio HB
 // 
 
-using RSS;
-using Atom;
 using System;
 using System.IO;
 using System.Net;
diff --git a/src/Item.cs b/src/Item.cs
index 3d892dc..ca61200 100644
--- a/src/Item.cs
+++ b/src/Item.cs
@@ -4,8 +4,6 @@
 // (C) 2004 Imendio AB
 // 
 
-using RSS;
-using Atom;
 using System.Xml.Serialization;
 using System;
 using System.ServiceModel.Syndication;
@@ -91,62 +89,6 @@ namespace Imendio.Blam {
             return true;
         }
 
-		/* This is called in the middle of an refresh so the channel will be
-		 * updated when refresh is done
-		 */
-		public bool Update (RSSItem rssItem)
-		{
-			if (this.Title != HtmlUtils.StripHtml(rssItem.Title.Trim ()) ) {
-				this.Title = HtmlUtils.StripHtml(rssItem.Title.Trim ());
-				this.SetUnread (true, true);
-				return true;
-			}
-            
-            if(rssItem.Description != null && this.Text != rssItem.Description.Trim()){
-                this.Text = rssItem.Description.Trim();
-                if(rssItem.Content != null && this.Text != rssItem.Content.Trim()){
-                    this.Text = rssItem.Content.Trim();
-                }
-                    return true;
-            }
-			return false;
-		}
-
-		public bool Update (AtomEntry entry)
-		{
-			if (this.Title != HtmlUtils.StripHtml(entry.Title.Text.Trim())) {
-				this.Title = HtmlUtils.StripHtml(entry.Title.Text.Trim());
-				return true;
-			}
-
-			string entryText = "";
-			if (entry.Content == null || entry.Content.Length == 0) {
-                if(entry.Summary.Text == null){
-                    entryText = "<p>There was no summary/content found for this entry. This is" +
-                        " most likely a bug.</p>";
-                } else {
-                    entryText = entry.Summary.Text.Trim();
-                }
-			} else {
-                AtomText text = entry.ContentByType("text/html");
-                if(text != null){
-                    entryText = text.Text;
-                } else {
-                    text = entry.ContentByType("application/xhtml+xml");
-                    if(text != null){
-                        entryText = text.Text;
-                    }
-                }
-			}
-
-			if (this.Text.Equals(entryText) == false) {
-				this.Text = entryText;
-				return true;
-			}
-
-			return false;
-		}
-
 		public void SetUnread (bool unread, bool inAllChannels) 
 		{
 			if (Unread != unread) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]