From da9158937d96e84bd39a7fbbbaace7cd4f8fe18c Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Fri, 28 Aug 2020 21:36:46 +0100 Subject: WorldStorage: Removed unused callback parameters --- src/WorldStorage/WorldStorage.h | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'src/WorldStorage/WorldStorage.h') diff --git a/src/WorldStorage/WorldStorage.h b/src/WorldStorage/WorldStorage.h index 1cdf75542..dc4bb2e17 100644 --- a/src/WorldStorage/WorldStorage.h +++ b/src/WorldStorage/WorldStorage.h @@ -22,8 +22,6 @@ // fwd: class cWorld; -typedef cQueue cChunkCoordsQueue; - @@ -61,13 +59,11 @@ public: cWorldStorage(); virtual ~cWorldStorage() override; - /** Queues a chunk to be loaded, asynchronously. - The callback, if specified, will be called with the result of the load operation. */ - void QueueLoadChunk(int a_ChunkX, int a_ChunkZ, cChunkCoordCallback * a_Callback = nullptr); + /** Queues a chunk to be loaded, asynchronously. */ + void QueueLoadChunk(int a_ChunkX, int a_ChunkZ); - /** Queues a chunk to be saved, asynchronously. - The callback, if specified, will be called with the result of the save operation. */ - void QueueSaveChunk(int a_ChunkX, int a_ChunkZ, cChunkCoordCallback * a_Callback = nullptr); + /** Queues a chunk to be saved, asynchronously. */ + void QueueSaveChunk(int a_ChunkX, int a_ChunkZ); /** Initializes the storage schemas, ready to be started. */ void Initialize(cWorld & a_World, const AString & a_StorageSchemaName, int a_StorageCompressionFactor); @@ -84,8 +80,8 @@ protected: cWorld * m_World; AString m_StorageSchemaName; - cChunkCoordsQueue m_LoadQueue; - cChunkCoordsQueue m_SaveQueue; + cQueue m_LoadQueue; + cQueue m_SaveQueue; /** All the storage schemas (all used for loading) */ cWSSchemaList m_Schemas; -- cgit v1.2.3