[gbrainy] Remove unused variables



commit 757a93b2ee7b07aed20b418ce07b0ba530a627a5
Author: Jordi Mas <jmas softcatala org>
Date:   Thu Dec 17 09:14:44 2009 +0100

    Remove unused variables

 .../Classical/Dialogs/PlayerHistoryDialog.cs       |   18 +++++-------------
 1 files changed, 5 insertions(+), 13 deletions(-)
---
diff --git a/src/Clients/Classical/Dialogs/PlayerHistoryDialog.cs b/src/Clients/Classical/Dialogs/PlayerHistoryDialog.cs
index 3f906dd..6acc49f 100644
--- a/src/Clients/Classical/Dialogs/PlayerHistoryDialog.cs
+++ b/src/Clients/Classical/Dialogs/PlayerHistoryDialog.cs
@@ -39,21 +39,19 @@ namespace gbrainy.Clients.Classical
 		[Glade.Widget] Gtk.CheckButton checkbutton_verbal;
 
 		CairoPreview drawing_area;
-		PlayerHistory history;
 
 		public PlayerHistoryDialog (PlayerHistory history) : base ("playerhistory")
 		{
 			string label;
 
-			this.history = history;
 			label = Catalog.GetString ("The graphic below shows the player's game score evolution. ");
 			label +=  Catalog.GetPluralString ("You need more than one game recorded to see the score evolution.",
 				"It is built using the results of {0} last recorded games.", 
-				PlayerHistory.Games.Count < 2 ? 1 : 2);
+				history.Games.Count < 2 ? 1 : 2);
 
-			label_playerhistory.Text = String.Format (label, PlayerHistory.Games.Count);
+			label_playerhistory.Text = String.Format (label, history.Games.Count);
 
-			drawing_area = new CairoPreview (this);
+			drawing_area = new CairoPreview (history);
 			history_preview.Add (drawing_area);
 			drawing_area.Visible = true;
 
@@ -66,10 +64,6 @@ namespace gbrainy.Clients.Classical
 	 		checkbutton_total.Active = checkbutton_memory.Active = checkbutton_logic.Active = checkbutton_calculation.Active = checkbutton_verbal.Active = true;
 		}
 
-		public PlayerHistory PlayerHistory {
-			get {return history; }
-		}
-
 		void OnTotalToggled (object sender, EventArgs args)
 		{
 			drawing_area.View.ShowTotal = checkbutton_total.Active;
@@ -102,13 +96,11 @@ namespace gbrainy.Clients.Classical
 
 		public class CairoPreview : DrawingArea 
 		{
-			PlayerHistoryDialog dlg;
 			PlayerHistoryView view;
 
-			public CairoPreview (PlayerHistoryDialog dlg)
+			public CairoPreview (PlayerHistory history)
 			{
-				this.dlg = dlg;
-				view = new PlayerHistoryView (dlg.PlayerHistory);
+				view = new PlayerHistoryView (history);
 			}
 
 			public PlayerHistoryView View {



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