[f-spot] Remove unused parameter.



commit a77a60690667b21e80bf8cdbe3d6b2badbcdc368
Author: Ruben Vermeersch <ruben savanne be>
Date:   Fri Jun 11 14:14:19 2010 +0200

    Remove unused parameter.

 src/Import/ImportController.cs |    2 +-
 src/PhotoStore.cs              |    3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/Import/ImportController.cs b/src/Import/ImportController.cs
index a9df31e..875e49b 100644
--- a/src/Import/ImportController.cs
+++ b/src/Import/ImportController.cs
@@ -295,7 +295,7 @@ namespace FSpot.Import
             string hash = String.Empty;
 
             // Do duplicate detection
-            if (DuplicateDetect && store.HasDuplicate (item.DefaultVersion.Uri, destination, out hash)) {
+            if (DuplicateDetect && store.HasDuplicate (item.DefaultVersion.Uri, out hash)) {
                 return;
             }
 
diff --git a/src/PhotoStore.cs b/src/PhotoStore.cs
index 4ab27ff..25ec594 100644
--- a/src/PhotoStore.cs
+++ b/src/PhotoStore.cs
@@ -99,14 +99,13 @@ public class PhotoStore : DbStore<Photo> {
 		Database.ExecuteNonQuery ("CREATE INDEX idx_photos_roll_id ON photos(roll_id)");
 	}
 
-	public bool HasDuplicate (SafeUri uri, SafeUri destination, out string hash) {
+	public bool HasDuplicate (SafeUri uri, out string hash) {
 		hash = Photo.GenerateMD5 (uri);
 		var condition = new ConditionWrapper (String.Format ("import_md5 = \"{0}\"", hash));
 		var dupes_by_hash = Count ("photo_versions", condition);
 		if (dupes_by_hash > 0)
 			return true;
 
-		// FIXME
 		return false;
 	}
 



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