[f-spot] Remove some obsolete code.



commit b46b7232cb575633e906d80f4917096f63dcebf1
Author: Ruben Vermeersch <ruben savanne be>
Date:   Thu Jun 3 20:37:45 2010 +0200

    Remove some obsolete code.

 src/Imaging/ImageFile.cs |   12 ------------
 src/RotateCommand.cs     |    2 +-
 src/UriCollection.cs     |    2 +-
 3 files changed, 2 insertions(+), 14 deletions(-)
---
diff --git a/src/Imaging/ImageFile.cs b/src/Imaging/ImageFile.cs
index def2beb..c770c00 100644
--- a/src/Imaging/ImageFile.cs
+++ b/src/Imaging/ImageFile.cs
@@ -182,12 +182,6 @@ namespace FSpot {
 			}
 		}
 
-		[Obsolete ("use HasLoader (Hyena.SafeUri) instead")]
-		public static bool HasLoader (string path)
-		{
-			return HasLoader (new SafeUri (path));
-		}
-		
 		public static bool HasLoader (SafeUri uri)
 		{
 			return GetLoaderType (uri) != null;
@@ -211,12 +205,6 @@ namespace FSpot {
 			return t;
 		}
 		
-		[Obsolete ("use Create (Hyena.SafeUri) instead")]
-		public static ImageFile Create (string path)
-		{
-			return Create (new SafeUri (path));
-		}
-
 		public static ImageFile Create (SafeUri uri)
 		{
 			System.Type t = GetLoaderType (uri);
diff --git a/src/RotateCommand.cs b/src/RotateCommand.cs
index 1749dcd..50207f3 100644
--- a/src/RotateCommand.cs
+++ b/src/RotateCommand.cs
@@ -69,7 +69,7 @@ namespace FSpot {
 
 		private static void RotateOrientation (string original_path, RotateDirection direction)
 		{
-			using (FSpot.ImageFile img = FSpot.ImageFile.Create (original_path)) {
+			using (FSpot.ImageFile img = FSpot.ImageFile.Create (new SafeUri (original_path))) {
 				if (img is JpegFile) {
 					FSpot.JpegFile jimg = img as FSpot.JpegFile;
 					PixbufOrientation orientation = direction == RotateDirection.Clockwise
diff --git a/src/UriCollection.cs b/src/UriCollection.cs
index 73cf483..aeab64d 100644
--- a/src/UriCollection.cs
+++ b/src/UriCollection.cs
@@ -143,7 +143,7 @@ namespace FSpot {
 		{
 			List<IBrowsableItem> items = new List<IBrowsableItem> ();
 			foreach (var f in files) {
-				if (FSpot.ImageFile.HasLoader (f.FullName)) {
+				if (FSpot.ImageFile.HasLoader (new SafeUri (f.FullName))) {
 					Hyena.Log.Debug (f.FullName);
 					items.Add (new FileBrowsableItem (new SafeUri (f.FullName)));
 				}



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