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 diff
     1.1 --- a/API/Objects/WarFoundryStagedLoadingObject.cs	Wed Jul 11 20:39:34 2012 +0100
     1.2 +++ b/API/Objects/WarFoundryStagedLoadingObject.cs	Wed Jul 11 20:51:53 2012 +0100
     1.3 @@ -13,7 +13,6 @@
     1.4  		private bool isFullyLoaded;
     1.5  		private bool isLoading;
     1.6  		private IWarFoundryFactory creatingFactory;
     1.7 -		private FileInfo sourceFile;
     1.8  		
     1.9  		protected WarFoundryStagedLoadingObject(IWarFoundryFactory creatingFactory) : this (null, creatingFactory)
    1.10  		{
    1.11 @@ -27,21 +26,15 @@
    1.12  		{
    1.13  			this.creatingFactory = creatingFactory;
    1.14  			isFullyLoaded = false;
    1.15 -		}	
    1.16 -		
    1.17 -		public FileInfo SourceFile
    1.18 -		{
    1.19 -			get { return sourceFile; }
    1.20 -			set { sourceFile = value; }
    1.21  		}
    1.22  		
    1.23 -		public void EnsureFullyLoaded ()
    1.24 +		public void EnsureFullyLoaded()
    1.25  		{
    1.26  			if (!IsFullyLoaded && !IsLoading)
    1.27  			{
    1.28  				if (Factory == null)
    1.29  				{
    1.30 -					throw new InvalidOperationException("No factory set for partially loaded object with ID "+ID);
    1.31 +					throw new InvalidOperationException("No factory set for partially loaded object with ID " + ID);
    1.32  				}
    1.33  				
    1.34  				Factory.CompleteLoading(this);