[longomatch/redesign3] Remove unused variable



commit 53d86c91ece5ba8f9845e9d34aab3a49eb97ca73
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sun Aug 21 19:02:54 2011 +0200

    Remove unused variable

 LongoMatch/Gui/Component/PlayersListTreeWidget.cs |    6 +-----
 LongoMatch/Gui/MainWindow.cs                      |    4 ++--
 LongoMatch/Handlers/EventsManager.cs              |    4 ++--
 3 files changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/LongoMatch/Gui/Component/PlayersListTreeWidget.cs b/LongoMatch/Gui/Component/PlayersListTreeWidget.cs
index 03951e8..24eb24e 100644
--- a/LongoMatch/Gui/Component/PlayersListTreeWidget.cs
+++ b/LongoMatch/Gui/Component/PlayersListTreeWidget.cs
@@ -37,8 +37,6 @@ namespace LongoMatch.Gui.Component
 		public event PlayListNodeAddedHandler PlayListNodeAdded;
 		public event SnapshotSeriesHandler SnapshotSeriesEvent;
 
-		private TeamTemplate template;
-
 		public PlayersListTreeWidget()
 		{
 			this.Build();
@@ -60,8 +58,7 @@ namespace LongoMatch.Gui.Component
 			}
 		}
 
-		public void SetTeam(TeamTemplate template, TreeStore model) {
-			this.template = template;
+		public void SetTeam(TreeStore model) {
 			playerstreeview.Model = model;
 		}
 
@@ -77,7 +74,6 @@ namespace LongoMatch.Gui.Component
 
 		public void Clear() {
 			playerstreeview.Model = null;
-			template = null;
 		}
 
 		protected virtual void OnTimeNodeSelected(Play tNode) {
diff --git a/LongoMatch/Gui/MainWindow.cs b/LongoMatch/Gui/MainWindow.cs
index 83c893f..453cb88 100644
--- a/LongoMatch/Gui/MainWindow.cs
+++ b/LongoMatch/Gui/MainWindow.cs
@@ -188,8 +188,8 @@ namespace LongoMatch.Gui
 			TreeStore local, visitor;
 			
 			project.GetPlayersModel (out local, out visitor);
-			localplayerslisttreewidget.SetTeam(project.LocalTeamTemplate, local);
-			visitorplayerslisttreewidget.SetTeam(project.VisitorTeamTemplate, visitor);
+			localplayerslisttreewidget.SetTeam(local);
+			visitorplayerslisttreewidget.SetTeam(visitor);
 			
 		}
 
diff --git a/LongoMatch/Handlers/EventsManager.cs b/LongoMatch/Handlers/EventsManager.cs
index 83aeb6b..d7c11b1 100644
--- a/LongoMatch/Handlers/EventsManager.cs
+++ b/LongoMatch/Handlers/EventsManager.cs
@@ -288,8 +288,8 @@ namespace LongoMatch
 			TreeStore local, visitor;
 		
 			openedProject.GetPlayersModel (out local, out visitor);
-			localPlayersList.SetTeam(openedProject.LocalTeamTemplate, local);
-			visitorPlayersList.SetTeam(openedProject.VisitorTeamTemplate, visitor);
+			localPlayersList.SetTeam(local);
+			visitorPlayersList.SetTeam(visitor);
 		}
 
 		



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