[blam] FeedUpdater: remove unused function



commit 9b488c98b01d4b162eb8dfe92ba841fdfcaf209b
Author: Carlos MartÃn Nieto <carlos cmartin tk>
Date:   Mon Aug 6 01:02:08 2012 +0200

    FeedUpdater: remove unused function
    
    While in the area, make sure to use the right exception when in the
    filter catch.

 src/FeedUpdater.cs |   26 +-------------------------
 1 files changed, 1 insertions(+), 25 deletions(-)
---
diff --git a/src/FeedUpdater.cs b/src/FeedUpdater.cs
index 673175f..1c9d6c0 100644
--- a/src/FeedUpdater.cs
+++ b/src/FeedUpdater.cs
@@ -54,7 +54,7 @@ namespace Imendio.Blam {
                 try{
                     feed = SyndicationFeed.Load(reader);
                 } catch(Exception ex){
-                    System.Console.WriteLine("Filter didn't help: {0}", e.Message);
+                    System.Console.WriteLine("Filter didn't help: {0}", ex.Message);
                     return false;
                 }
             } catch(Exception e){
@@ -64,29 +64,5 @@ namespace Imendio.Blam {
 
             return channel.Update(feed);
         }
-
-    private static void set_credentials_from_uri(WebRequest req)
-    {
-        if (req.RequestUri.UserInfo != "") {
-            int i = 0;
-            string userInfo = req.RequestUri.UserInfo;
-            string userName = "";
-
-            while (i < userInfo.Length && userInfo[i] != ':')
-                userName += Uri.HexUnescape(userInfo, ref i);
-
-            if (i != userInfo.Length) {
-                string password = "";
-
-                i += 1;
-
-                while (i < userInfo.Length && userInfo[i] != ':')
-                    password += Uri.HexUnescape(userInfo, ref i);
-
-                req.Credentials = new NetworkCredential(userName,
-                                                        password);
-            }
-        }
-    }
     }
 }



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