diff --git a/core/src/main/java/com/seibel/distanthorizons/core/file/fullDatafile/FullDataMetaFile.java b/core/src/main/java/com/seibel/distanthorizons/core/file/fullDatafile/FullDataMetaFile.java index c8b42fa8d..a0020773a 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/file/fullDatafile/FullDataMetaFile.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/file/fullDatafile/FullDataMetaFile.java @@ -633,75 +633,6 @@ public class FullDataMetaFile extends AbstractMetaDataContainerFile implements I return completionFuture; } - /* - - private void applyWriteQueueAndSave(IFullDataSource fullDataSourceToUpdate) - { - boolean dataChanged = this.applyWriteQueueToFullDataSource(fullDataSourceToUpdate); - this.needsUpdate = false; - - // attempt to promote the data source - if (fullDataSourceToUpdate instanceof IIncompleteFullDataSource) - { - IFullDataSource newSource = ((IIncompleteFullDataSource) fullDataSourceToUpdate).tryPromotingToCompleteDataSource(); - dataChanged |= (newSource != fullDataSourceToUpdate); - fullDataSourceToUpdate = newSource; - } - - - // the provider may need to modify other files based on this data source changing - IFullDataSourceProvider.DataFileUpdateResult dataFileUpdateResult = this.fullDataSourceProvider.onDataFileUpdateAsync(fullDataSourceToUpdate, this, dataChanged); - IFullDataSource fullDataSource = dataFileUpdateResult.fullDataSource; - boolean dataSourceChanged = dataFileUpdateResult.dataSourceChanged; - - - // only save to file if something was changed - if (dataSourceChanged) - { - this.writeDataSource(fullDataSource); - } - - // keep track of non-null data sources - if (fullDataSource != null) - { - new DataObjTracker(fullDataSource); - new DataObjSoftTracker(this, fullDataSource); - } - - - boolean showFullDataFileStatus = Config.Client.Advanced.Debugging.DebugWireframe.showFullDataFileStatus.get(); - boolean showFullDataFileSampling = Config.Client.Advanced.Debugging.DebugWireframe.showFullDataFileSampling.get(); - if (showFullDataFileStatus || showFullDataFileSampling) - { - Color color; - if (this.pos.getDetailLevel() == DhSectionPos.SECTION_MINIMUM_DETAIL_LEVEL) - { - color = Color.GREEN; - } - else - { - color = Color.GREEN.darker().darker(); - } - - DebugRenderer.makeParticle(new DebugRenderer.BoxParticle( - new DebugRenderer.Box(this.pos, 64f, 72f, 0.03f, color), - 0.2, 32f)); - } - - - // save the updated data source - this.cachedFullDataSourceRef = new DataSourceReferenceTracker.FullDataSourceSoftRef(this, fullDataSource); - - - if (this.needsUpdate) - { - // another update was requested while this update was being processed - this.getOrLoadCachedDataSourceAsync(); - } - } - - */ - /** @return true if the queue was not empty and chunk data was applied to this meta file's {@link IFullDataSource}. */