Mercurial > repos > IBDev-IBBoard.WarFoundry.API
diff API/Objects/WarFoundryStagedLoadingObject.cs @ 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 | 3c4a6403a88c |
children |
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);