[banshee] Playlists: tidy



commit a715b96eac0ffca3043d0d3358221a3d376fa390
Author: Andrés G. Aragoneses <knocte gmail com>
Date:   Thu Apr 3 15:20:21 2014 +0200

    Playlists: tidy
    
    Remove some unused usings, fix some indentation and missing braces.

 .../Banshee.Playlist/PlaylistFileUtil.cs           |    5 +++--
 .../Banshee.Playlists.Formats/AsxPlaylistFormat.cs |    4 +---
 .../Banshee.Playlists.Formats/PlaylistParser.cs    |    3 ---
 3 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Playlist/PlaylistFileUtil.cs 
b/src/Core/Banshee.Services/Banshee.Playlist/PlaylistFileUtil.cs
index 47b5ae6..ee5005b 100644
--- a/src/Core/Banshee.Services/Banshee.Playlist/PlaylistFileUtil.cs
+++ b/src/Core/Banshee.Services/Banshee.Playlist/PlaylistFileUtil.cs
@@ -204,9 +204,10 @@ namespace Banshee.Playlist
                     }
 
                     // Give source a fallback value - MusicLibrary when it's null
-                    if (source == null)
+                    if (source == null) {
                         source = ServiceManager.SourceManager.MusicLibrary;
-                    
+                    }
+
                     // Only import an non-empty playlist
                     if (uris.Count > 0) {
                         ImportPlaylistWorker worker = new ImportPlaylistWorker (
diff --git a/src/Core/Banshee.Services/Banshee.Playlists.Formats/AsxPlaylistFormat.cs 
b/src/Core/Banshee.Services/Banshee.Playlists.Formats/AsxPlaylistFormat.cs
index a5a7c66..dcaca82 100644
--- a/src/Core/Banshee.Services/Banshee.Playlists.Formats/AsxPlaylistFormat.cs
+++ b/src/Core/Banshee.Services/Banshee.Playlists.Formats/AsxPlaylistFormat.cs
@@ -29,13 +29,11 @@
 using System;
 using System.IO;
 using System.Xml;
-using System.Collections.Generic;
 
 using Mono.Unix;
 
 using Hyena;
 
-using Banshee.Base;
 using Banshee.Sources;
 
 namespace Banshee.Playlists.Formats
@@ -145,7 +143,7 @@ namespace Banshee.Playlists.Formats
                         string uri_aux = xml_reader["HREF"] ?? xml_reader["href"];
                         if (uri_aux.StartsWith ("http", StringComparison.CurrentCultureIgnoreCase)) {
                             uri_aux = "mmsh" + uri_aux.Substring (4);
-                    }
+                        }
 
                         element.Uri = ResolveUri (uri_aux);
                         break;
diff --git a/src/Core/Banshee.Services/Banshee.Playlists.Formats/PlaylistParser.cs 
b/src/Core/Banshee.Services/Banshee.Playlists.Formats/PlaylistParser.cs
index 0f40e39..36996eb 100644
--- a/src/Core/Banshee.Services/Banshee.Playlists.Formats/PlaylistParser.cs
+++ b/src/Core/Banshee.Services/Banshee.Playlists.Formats/PlaylistParser.cs
@@ -30,13 +30,10 @@
 using System;
 using System.IO;
 using System.Net;
-using System.Web;
 using System.Collections.Generic;
 
 using Hyena;
 
-using Banshee.Base;
-
 namespace Banshee.Playlists.Formats
 {
     public class PlaylistParser


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