[longomatch] Fix warnings



commit af9164f0cc0711034af81d69fe2599c5a5176844
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Fri Oct 24 14:38:43 2014 +0200

    Fix warnings

 LongoMatch.Drawing/CanvasObjects/PlayerObject.cs |   10 ++--------
 LongoMatch.Drawing/Widgets/Timerule.cs           |    3 ---
 2 files changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/LongoMatch.Drawing/CanvasObjects/PlayerObject.cs 
b/LongoMatch.Drawing/CanvasObjects/PlayerObject.cs
index 6f1fa64..11a1143 100644
--- a/LongoMatch.Drawing/CanvasObjects/PlayerObject.cs
+++ b/LongoMatch.Drawing/CanvasObjects/PlayerObject.cs
@@ -56,11 +56,6 @@ namespace LongoMatch.Drawing.CanvasObjects
                        set;
                }
 
-               public Point Position {
-                       get;
-                       set;
-               }
-
                public int Size {
                        set;
                        get;
@@ -76,13 +71,13 @@ namespace LongoMatch.Drawing.CanvasObjects
                        set;
                }
 
-               int Width {
+               public override double Width {
                        get {
                                return Size;
                        }
                }
 
-               int Height {
+               public override double Height {
                        get {
                                return Size;
                        }
@@ -112,7 +107,6 @@ namespace LongoMatch.Drawing.CanvasObjects
                public override void Draw (IDrawingToolkit tk, Area area)
                {
                        Point zero, start, p;
-                       double numberSize;
                        double size, scale;
                        ISurface arrowin, arrowout;
 
diff --git a/LongoMatch.Drawing/Widgets/Timerule.cs b/LongoMatch.Drawing/Widgets/Timerule.cs
index 21e0de8..70e942f 100644
--- a/LongoMatch.Drawing/Widgets/Timerule.cs
+++ b/LongoMatch.Drawing/Widgets/Timerule.cs
@@ -32,7 +32,6 @@ namespace LongoMatch.Drawing.Widgets
                const int SMALL_LINE_HEIGHT = 5;
                const int TEXT_WIDTH = 20;
                const int TIME_SPACING = 100;
-               bool moving;
                NeedleObject needle;
                double scroll;
                double secondsPerPixel;
@@ -83,13 +82,11 @@ namespace LongoMatch.Drawing.Widgets
 
                protected override void StartMove (Selection sel)
                {
-                       moving = true;
                        Config.EventsBroker.EmitTogglePlayEvent (false);
                }
 
                protected override void StopMove (bool moved)
                {
-                       moving = false;
                        Config.EventsBroker.EmitTogglePlayEvent (true);
                }
 


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