[f-spot] Remove unused methods in PixbufUtils.



commit dd387258450aa552c3e729c0f7b9d15ecfcd5238
Author: Ruben Vermeersch <ruben savanne be>
Date:   Mon Aug 9 14:25:13 2010 +0200

    Remove unused methods in PixbufUtils.

 src/Clients/MainApp/PixbufUtils.cs |   28 ----------------------------
 1 files changed, 0 insertions(+), 28 deletions(-)
---
diff --git a/src/Clients/MainApp/PixbufUtils.cs b/src/Clients/MainApp/PixbufUtils.cs
index 0e5732c..9330fe0 100644
--- a/src/Clients/MainApp/PixbufUtils.cs
+++ b/src/Clients/MainApp/PixbufUtils.cs
@@ -32,11 +32,6 @@ public static class PixbufUtils {
 	}
 	public static Pixbuf LoadingPixbuf = PixbufUtils.LoadFromAssembly ("f-spot-loading.png");
 
-	public static int GetSize (Pixbuf pixbuf)
-	{
-		return Math.Max (pixbuf.Width, pixbuf.Height);
-	}
-
 	public static double Fit (Pixbuf pixbuf,
 				  int dest_width, int dest_height,
 				  bool upscale_smaller,
@@ -164,35 +159,12 @@ public static class PixbufUtils {
 		return result;
 	}
 
-	static public void GetSize (string path, out int width, out int height)
-	{
-		using (Gdk.Pixbuf pixbuf = new Gdk.Pixbuf (path)) {
-			width = pixbuf.Width;
-			height = pixbuf.Height;
-		}
-	}
-
 	static public Pixbuf LoadAtMaxSize (string path, int max_width, int max_height)
 	{
 		PixbufUtils.AspectLoader loader = new AspectLoader (max_width, max_height);
 		return loader.LoadFromFile (path);
 	}
 
-	static public Pixbuf LoadFromStream (System.IO.Stream input)
-	{
-		Gdk.PixbufLoader loader = new Gdk.PixbufLoader ();
-		byte [] buffer = new byte [8192];
-		int n;
-
-		while ((n = input.Read (buffer, 0, 8192)) != 0)
-			loader.Write (buffer, (ulong) n);
-
-		loader.Close ();
-
-		return loader.Pixbuf;
-
-	}
-
 	public static Pixbuf TagIconFromPixbuf (Pixbuf source)
 	{
 		return IconFromPixbuf (source, (int) Tag.IconSize.Large);



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