From c4b8778e8bcd16ee7b1e1482e158b18c4bfce7c8 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Sat, 1 Jun 2024 16:53:56 +0000 Subject: [PATCH] Remove unused code --- lib/IGameCallback.cpp | 1 - lib/gameState/CGameState.cpp | 3 +-- lib/registerTypes/RegisterTypesLobbyPacks.h | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/IGameCallback.cpp b/lib/IGameCallback.cpp index 443000de3..ce3a3fa98 100644 --- a/lib/IGameCallback.cpp +++ b/lib/IGameCallback.cpp @@ -14,7 +14,6 @@ #include "spells/CSpellHandler.h"// for CSpell #include "CSkillHandler.h"// for CSkill #include "CBonusTypeHandler.h" -#include "CRandomGenerator.h" #include "BattleFieldHandler.h" #include "ObstacleHandler.h" #include "bonuses/Limiters.h" diff --git a/lib/gameState/CGameState.cpp b/lib/gameState/CGameState.cpp index fe4e4f414..cc48de519 100644 --- a/lib/gameState/CGameState.cpp +++ b/lib/gameState/CGameState.cpp @@ -21,7 +21,6 @@ #include "../CGeneralTextHandler.h" #include "../CHeroHandler.h" #include "../CPlayerState.h" -#include "../CRandomGenerator.h" #include "../CStopWatch.h" #include "../GameSettings.h" #include "../StartInfo.h" @@ -311,7 +310,7 @@ void CGameState::initNewGame(const IMapService * mapService, bool allowSavingRan const std::string templateName = options->getMapTemplate()->getName(); const std::string dt = vstd::getDateTimeISO8601Basic(std::time(nullptr)); - const std::string fileName = boost::str(boost::format("%s_%s_%d.vmap") % dt % templateName ); + const std::string fileName = boost::str(boost::format("%s_%s.vmap") % dt % templateName ); const auto fullPath = path / fileName; randomMap->name.appendRawString(boost::str(boost::format(" %s") % dt)); diff --git a/lib/registerTypes/RegisterTypesLobbyPacks.h b/lib/registerTypes/RegisterTypesLobbyPacks.h index c70c74eca..6859f5d9f 100644 --- a/lib/registerTypes/RegisterTypesLobbyPacks.h +++ b/lib/registerTypes/RegisterTypesLobbyPacks.h @@ -17,7 +17,6 @@ #include "../gameState/TavernHeroesPool.h" #include "../gameState/CGameStateCampaign.h" #include "../mapping/CMap.h" -#include "../CRandomGenerator.h" #include "../TerrainHandler.h" #include "../RiverHandler.h" #include "../RoadHandler.h"