[tracker/miner-flickr: 23/24] tracker-miner-flickr: Remove writeback for tags



commit cfd7a491ee19cb4d9db9b03c673f615f0091aa89
Author: Adrien Bustany <abustany gnome org>
Date:   Fri Mar 26 13:58:52 2010 -0300

    tracker-miner-flickr: Remove writeback for tags
    
    We can't really do anything for tags (no renames) with the Flickr API.

 src/miners/flickr/tracker-miner-flickr.vala |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/src/miners/flickr/tracker-miner-flickr.vala b/src/miners/flickr/tracker-miner-flickr.vala
index e174c36..5ac4645 100644
--- a/src/miners/flickr/tracker-miner-flickr.vala
+++ b/src/miners/flickr/tracker-miner-flickr.vala
@@ -35,7 +35,6 @@ public class MinerFlickr : Tracker.MinerWeb {
 	private static const string FLICKR_PHOTOSET_URL = "http://www.flickr.com/photos/%s/sets/%s";;
 	private static const string FLICKR_PHOTO_URL = "http://farm%s.static.flickr.com/%s/%s_%s.jpg";;
 	private static const string NMM_PHOTO = "http://www.tracker-project.org/temp/nmm#Photo";;
-	private static const string NAO_TAG = "http://www.semanticdesktop.org/ontologies/2007/08/15/nao#Tag";;
 
 	/* Values taken from the EXIF spec */
 	private enum ExifTag {
@@ -490,9 +489,6 @@ public class MinerFlickr : Tracker.MinerWeb {
 			remove_tag (tag);
 	}
 
-	private void writeback_tag (string uri) {
-	}
-
 	private double ratioToDouble (string ratio) {
 		string[] tokens = ratio.split ("/");
         if (tokens[1].to_int () == 0) {
@@ -694,11 +690,6 @@ public class MinerFlickr : Tracker.MinerWeb {
 					writeback_photo (uri);
 					return;
 				}
-
-				if (rdf_classes[i] == NAO_TAG) {
-					writeback_tag (uri);
-					return;
-				}
 			}
 		}
 	}



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