[f-spot] Remove a goto statement



commit 1c0c313ae2ab7acbcdd8e8bf3beee5b5064d53e8
Author: Stephen Shaw <sshaw decriptor com>
Date:   Tue Mar 20 09:43:35 2012 -0600

    Remove a goto statement

 src/Clients/MainApp/PixbufUtils.cs |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/Clients/MainApp/PixbufUtils.cs b/src/Clients/MainApp/PixbufUtils.cs
index 9a7138c..4594ca4 100644
--- a/src/Clients/MainApp/PixbufUtils.cs
+++ b/src/Clients/MainApp/PixbufUtils.cs
@@ -471,16 +471,13 @@ public static class PixbufUtils
 			byte * p = pix;
 			for (int i = 0; i < w; i++) {
 				if (Math.Abs (p [0] - p [1]) > max_difference || Math.Abs (p [0] - p [2]) > max_difference)
-					goto Found;
+					return false;
 				p += chan;
 			}
 			pix += stride;
 		}
 
 		return true;
-
-		Found:
-			return false;
 	}
 
 	public static unsafe void ReplaceColor (Gdk.Pixbuf src, Gdk.Pixbuf dest)



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