[longomatch] Remove unused variables



commit 18363f353bb394960be05276f9b337371a54af97
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sun Jun 27 01:59:00 2010 +0200

    Remove unused variables

 CesarPlayer/Gui/CapturerBin.cs            |    3 ---
 CesarPlayer/Gui/PlayerBin.cs              |    7 +------
 LongoMatch/Compat/0.0/DB/Sections.cs      |    4 ----
 LongoMatch/Compat/0.0/DatabaseMigrator.cs |    2 --
 4 files changed, 1 insertions(+), 15 deletions(-)
---
diff --git a/CesarPlayer/Gui/CapturerBin.cs b/CesarPlayer/Gui/CapturerBin.cs
index 1ab918a..d2a6b64 100644
--- a/CesarPlayer/Gui/CapturerBin.cs
+++ b/CesarPlayer/Gui/CapturerBin.cs
@@ -285,9 +285,7 @@ namespace LongoMatch.Gui
 		protected virtual void OnLogodrawingareaExposeEvent (object o, Gtk.ExposeEventArgs args)
 		{	
 			Gdk.Window win;
-			Rectangle area;
 			Pixbuf frame;
-			Pixbuf drawing;
 			int width, height, allocWidth, allocHeight, logoX, logoY;
 			float ratio;
 			
@@ -299,7 +297,6 @@ namespace LongoMatch.Gui
 			height = logopix.Height;
 			allocWidth = logodrawingarea.Allocation.Width;
 			allocHeight = logodrawingarea.Allocation.Height;
-			area = args.Event.Area;
 			
 			/* Checking if allocated space is smaller than our logo */
 			if ((float) allocWidth / width > (float) allocHeight / height) {
diff --git a/CesarPlayer/Gui/PlayerBin.cs b/CesarPlayer/Gui/PlayerBin.cs
index 9eba8d7..d30b4df 100644
--- a/CesarPlayer/Gui/PlayerBin.cs
+++ b/CesarPlayer/Gui/PlayerBin.cs
@@ -1,4 +1,4 @@
-// PlayerBin.cs 
+// PlayerBin.cs 
 //
 //  Copyright (C) 2007-2009 Andoni Morales Alastruey
 //
@@ -51,7 +51,6 @@ namespace LongoMatch.Gui
 		private string slength;
 		private long segmentStartTime;
 		private long segmentStopTime;
-		private bool hasNext;
 		private bool seeking=false;
 		private double[] seeksQueue; 
 		private bool IsPlayingPrevState = false;
@@ -205,7 +204,6 @@ namespace LongoMatch.Gui
 		}
 	
 		public void SetPlayListElement(string fileName,long start, long stop, float rate, bool hasNext){
-			this.hasNext = hasNext;
 			if (hasNext)
 				nextbutton.Sensitive = true;
 			else
@@ -303,7 +301,6 @@ namespace LongoMatch.Gui
 		
 		public void CloseActualSegment(){
 			closebutton.Hide();
-			hasNext = false;
 			segmentStartTime = 0;
 			segmentStopTime = 0;
 			vscale1.Value=25;
@@ -410,7 +407,6 @@ namespace LongoMatch.Gui
 			long currentTime = args.CurrentTime;
 			float currentposition = args.CurrentPosition;		
 			long streamLength = args.StreamLength;		
-			bool seekable = args.Seekable;
 			
 			//Console.WriteLine ("Current Time:{0}\n Length:{1}\n",currentTime, streamLength);
 			if (length != streamLength){							
@@ -580,7 +576,6 @@ namespace LongoMatch.Gui
 		protected virtual void OnDrawButtonClicked (object sender, System.EventArgs e)
 		{
 			int currentTime;
-			Pixbuf frame=null;
 			
 			currentTime = (int)AccurateCurrentTime;
 			// If the player has reached the end of the segment the current time
diff --git a/LongoMatch/Compat/0.0/DB/Sections.cs b/LongoMatch/Compat/0.0/DB/Sections.cs
index 5b7be94..06dcca5 100644
--- a/LongoMatch/Compat/0.0/DB/Sections.cs
+++ b/LongoMatch/Compat/0.0/DB/Sections.cs
@@ -29,16 +29,12 @@ namespace LongoMatch.Compat.v00.DB
 	{
 		private SectionsTimeNode[] timeNodesArray;
 		private Color[] colorsArray;
-		private int visibleSections;
-		private int totalSections;
 
 
 		public Sections(int sections)
 		{
 			this.timeNodesArray = new SectionsTimeNode[sections];
 			this.colorsArray = new Color[sections];
-			this.totalSections = sections;
-			this.visibleSections = sections;
 			for (int i=0;i<20;i++) {
 				colorsArray[i] = new Color(254,0,0);
 				timeNodesArray[i] = null;
diff --git a/LongoMatch/Compat/0.0/DatabaseMigrator.cs b/LongoMatch/Compat/0.0/DatabaseMigrator.cs
index ce24ccc..22f02c7 100644
--- a/LongoMatch/Compat/0.0/DatabaseMigrator.cs
+++ b/LongoMatch/Compat/0.0/DatabaseMigrator.cs
@@ -47,8 +47,6 @@ namespace LongoMatch.Compat
 
 		private string oldDBFile;
 
-		private string newDBFile;
-
 		private PreviewMediaFile file;
 
 		private Thread thread;



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