[f-spot] Remove unused code



commit 6796eb1235edfd01f7b251221a699cac48bc588c
Author: Ruben Vermeersch <ruben savanne be>
Date:   Sat Jun 5 02:01:06 2010 +0200

    Remove unused code

 src/Term.cs                   |    1 -
 src/UriCollection.cs          |    2 --
 src/Vector.cs                 |    5 -----
 src/Widgets/CompositeUtils.cs |    3 ---
 src/Widgets/FindBar.cs        |   10 ----------
 src/Widgets/FolderTreeView.cs |    9 ---------
 src/Widgets/IconView.cs       |    6 ------
 src/Widgets/ImageDisplay.cs   |    3 ---
 src/Widgets/PanZoom.cs        |    1 -
 src/Widgets/PreviewPopup.cs   |    1 -
 10 files changed, 0 insertions(+), 41 deletions(-)
---
diff --git a/src/Term.cs b/src/Term.cs
index d76b12f..64f4fff 100644
--- a/src/Term.cs
+++ b/src/Term.cs
@@ -17,7 +17,6 @@ namespace FSpot {
 	public abstract class Term {
 		private ArrayList sub_terms = new ArrayList ();
 		private Term parent = null;
-		private string separator;
 
 		protected bool is_negated = false;
 		protected Tag tag = null;
diff --git a/src/UriCollection.cs b/src/UriCollection.cs
index aeab64d..367a112 100644
--- a/src/UriCollection.cs
+++ b/src/UriCollection.cs
@@ -108,13 +108,11 @@ namespace FSpot {
 		private class DirectoryLoader
 		{
 			UriCollection collection;
-			SafeUri uri;
 			GLib.File file;
 
 			public DirectoryLoader (UriCollection collection, SafeUri uri)
 			{
 				this.collection = collection;
-				this.uri = uri;
 				file = FileFactory.NewForUri (uri);
 				file.EnumerateChildrenAsync ("standard::*",
 							     FileQueryInfoFlags.None,
diff --git a/src/Vector.cs b/src/Vector.cs
index 7531315..565eee6 100644
--- a/src/Vector.cs
+++ b/src/Vector.cs
@@ -48,11 +48,6 @@ namespace FSpot {
 			return v1.X * v2.X + v1.Y * v2.Y;
 		}
 
-		double Dot (Vector v)
-		{
-			return Dot (this, v);
-		}
-
 		double Length {
 			get {
 				return Math.Sqrt (X * X + Y * Y);
diff --git a/src/Widgets/CompositeUtils.cs b/src/Widgets/CompositeUtils.cs
index e9fed84..b3740f7 100644
--- a/src/Widgets/CompositeUtils.cs
+++ b/src/Widgets/CompositeUtils.cs
@@ -15,9 +15,6 @@ namespace FSpot.Widgets {
 									IntPtr property);
 
 		[DllImport("libgdk-2.0-0.dll")]
-		static extern IntPtr gdk_x11_get_xatom_by_name_for_display (IntPtr display, string name);
-
-		[DllImport("libgdk-2.0-0.dll")]
 		static extern IntPtr gdk_screen_get_rgba_colormap (IntPtr screen);
 
 		[DllImport("libgdk-2.0-0.dll")]
diff --git a/src/Widgets/FindBar.cs b/src/Widgets/FindBar.cs
index fad02d0..0d03fb2 100644
--- a/src/Widgets/FindBar.cs
+++ b/src/Widgets/FindBar.cs
@@ -198,16 +198,6 @@ namespace FSpot.Widgets {
 							  RegexOptions.IgnoreCase | RegexOptions.Compiled
 						  );
 
-		// Debug method used to print results to verify the regex
-		private static void PrintGroup (GroupCollection groups, string name)
-		{
-			Group group = groups [name];
-			Log.DebugFormat ("Name: {2} (success = {1}) group: {0}", group, group.Success, name);
-			foreach (Capture capture in group.Captures) {
-				Log.DebugFormat ("  Have capture: {0}", capture);
-			}
-		}
-
 		// Breaking the query the user typed into something useful involves running
 		// it through the above regular expression recursively until it is broken down
 		// into literals and operators that we can use to generate SQL queries.
diff --git a/src/Widgets/FolderTreeView.cs b/src/Widgets/FolderTreeView.cs
index 1b4a132..1addd7b 100644
--- a/src/Widgets/FolderTreeView.cs
+++ b/src/Widgets/FolderTreeView.cs
@@ -129,15 +129,6 @@ namespace FSpot.Widgets
 			}
 		}
 			
-		private string GetStock (string scheme)
-		{
-			/* not very usefull at the moment */
-			if (scheme == Uri.UriSchemeFile)
-				return "gtk-directory";
-		
-			return "gtk-directory";
-		}
-		
 		private static TargetEntry [] folder_tree_source_target_table =
 			new TargetEntry [] {
 				DragDropTargets.UriQueryEntry,
diff --git a/src/Widgets/IconView.cs b/src/Widgets/IconView.cs
index b5e987d..1d7b264 100644
--- a/src/Widgets/IconView.cs
+++ b/src/Widgets/IconView.cs
@@ -201,12 +201,6 @@ namespace FSpot.Widgets
 				return real_focus_cell;
 			}
 		}
-		// Number of consecutive GDK_BUTTON_PRESS on the same cell, to
-		// distinguish the GDK_2BUTTON_PRESS events that we actually care
-		// about.
-		private int click_count;
-
-		private Gdk.GC rect_gc = null;
 
 		// Public events.
 		public event EventHandler<BrowsableEventArgs> DoubleClicked;
diff --git a/src/Widgets/ImageDisplay.cs b/src/Widgets/ImageDisplay.cs
index f6ca7c4..c5e4b03 100644
--- a/src/Widgets/ImageDisplay.cs
+++ b/src/Widgets/ImageDisplay.cs
@@ -27,10 +27,8 @@ namespace FSpot.Widgets {
 	public class ImageDisplay : Gtk.EventBox {
 		ImageInfo current;
 		ImageInfo next;
-		BrowsablePointer item;
 		ITransition transition;
 		Delay delay;
-		int index = 0;
 		int block_size = 256;
 
 		ITransition Transition {
@@ -51,7 +49,6 @@ namespace FSpot.Widgets {
 
 		public ImageDisplay (BrowsablePointer item) 
 		{
-			this.item = item;
 			CanFocus = true;
 			current = new ImageInfo (item.Current.DefaultVersion.Uri);
 			if (item.Collection.Count > item.Index + 1) {
diff --git a/src/Widgets/PanZoom.cs b/src/Widgets/PanZoom.cs
index 5c88f84..cc7cf28 100644
--- a/src/Widgets/PanZoom.cs
+++ b/src/Widgets/PanZoom.cs
@@ -16,7 +16,6 @@ using Gtk;
 namespace FSpot.Widgets {		
 	public class PanZoomOld : ITransition {
 		ImageInfo info;
-		ImageInfo buffer;
 		TimeSpan duration = new TimeSpan (0, 0, 7);
 		double pan_x;
 		double pan_y;
diff --git a/src/Widgets/PreviewPopup.cs b/src/Widgets/PreviewPopup.cs
index 25a965a..8c94eb1 100644
--- a/src/Widgets/PreviewPopup.cs
+++ b/src/Widgets/PreviewPopup.cs
@@ -19,7 +19,6 @@ namespace FSpot {
 		private IconView view;
 		private Gtk.Image image;
 		private Gtk.Label label;
-		private bool composited;
 
 		private bool show_histogram;
 		public bool ShowHistogram {



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