changeset 484:aa0d18816cf8

Re #419: Remove assumptions of a file-based install * Remove unused FileInfo object property
author IBBoard <dev@ibboard.co.uk>
date Wed, 11 Jul 2012 20:51:53 +0100
parents 4d6c92744254
children 8160d1f8243c
files API/Objects/WarFoundryStagedLoadingObject.cs
diffstat 1 files changed, 2 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/API/Objects/WarFoundryStagedLoadingObject.cs	Wed Jul 11 20:39:34 2012 +0100
+++ b/API/Objects/WarFoundryStagedLoadingObject.cs	Wed Jul 11 20:51:53 2012 +0100
@@ -13,7 +13,6 @@
 		private bool isFullyLoaded;
 		private bool isLoading;
 		private IWarFoundryFactory creatingFactory;
-		private FileInfo sourceFile;
 		
 		protected WarFoundryStagedLoadingObject(IWarFoundryFactory creatingFactory) : this (null, creatingFactory)
 		{
@@ -27,21 +26,15 @@
 		{
 			this.creatingFactory = creatingFactory;
 			isFullyLoaded = false;
-		}	
-		
-		public FileInfo SourceFile
-		{
-			get { return sourceFile; }
-			set { sourceFile = value; }
 		}
 		
-		public void EnsureFullyLoaded ()
+		public void EnsureFullyLoaded()
 		{
 			if (!IsFullyLoaded && !IsLoading)
 			{
 				if (Factory == null)
 				{
-					throw new InvalidOperationException("No factory set for partially loaded object with ID "+ID);
+					throw new InvalidOperationException("No factory set for partially loaded object with ID " + ID);
 				}
 				
 				Factory.CompleteLoading(this);