[f-spot] Effect is never used, it's always transition, drop the unused code.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: svn-commits-list gnome org
- Subject: [f-spot] Effect is never used, it's always transition, drop the unused code.
- Date: Sun, 14 Jun 2009 19:30:36 -0400 (EDT)
commit 3183cee01f4f79814b33ad9f0a79a46974f69901
Author: Ruben Vermeersch <ruben savanne be>
Date: Mon Jun 15 01:17:30 2009 +0200
Effect is never used, it's always transition, drop the unused code.
src/Widgets/ImageDisplay.cs | 15 ---------------
1 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/src/Widgets/ImageDisplay.cs b/src/Widgets/ImageDisplay.cs
index 01bcd05..5be2044 100644
--- a/src/Widgets/ImageDisplay.cs
+++ b/src/Widgets/ImageDisplay.cs
@@ -28,7 +28,6 @@ namespace FSpot.Widgets {
ImageInfo next;
BrowsablePointer item;
ITransition transition;
- IEffect effect;
Delay delay;
int index = 0;
int block_size = 256;
@@ -74,9 +73,6 @@ namespace FSpot.Widgets {
Transition = null;
- if (effect != null)
- effect.Dispose ();
-
base.OnDestroyed ();
}
@@ -167,17 +163,6 @@ namespace FSpot.Widgets {
System.Console.WriteLine ("frames = {0}", Transition.Frames);
Transition = null;
}
- } else if (effect != null) {
- foreach (Gdk.Rectangle area in GetRectangles (region)) {
- BlockProcessor proc = new BlockProcessor (area, block_size);
- Gdk.Rectangle subarea;
- while (proc.Step (out subarea)) {
- ctx.Save ();
- SetClip (ctx, subarea);
- effect.OnExpose (ctx, Allocation);
- ctx.Restore ();
- }
- }
} else {
ctx.Operator = Operator.Source;
SurfacePattern p = new SurfacePattern (current.Surface);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]