From afa85ff1b855b0e09ec8b767688c36c4e1a6c2d3 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sat, 30 Dec 2017 14:35:49 +0000 Subject: [PATCH] Don't store game's local data path It's only passed to libloadorder. --- src/api/game/game.cpp | 3 +-- src/api/game/game.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/api/game/game.cpp b/src/api/game/game.cpp index f5e7d8c7..db7ee274 100644 --- a/src/api/game/game.cpp +++ b/src/api/game/game.cpp @@ -61,7 +61,6 @@ Game::Game(const GameType gameType, const boost::filesystem::path& localDataPath) : type_(gameType), gamePath_(gamePath), - localDataPath_(localDataPath), cache_(std::make_shared()), loadOrderHandler_(std::make_shared()) { auto logger = getLogger(); @@ -71,7 +70,7 @@ Game::Game(const GameType gameType, gamePath_.string()); } - loadOrderHandler_->Init(type_, gamePath_, localDataPath_); + loadOrderHandler_->Init(type_, gamePath_, localDataPath); database_ = std::make_shared( Type(), DataPath(), GetCache(), GetLoadOrderHandler()); diff --git a/src/api/game/game.h b/src/api/game/game.h index 53fe2e72..1ef73f9d 100644 --- a/src/api/game/game.h +++ b/src/api/game/game.h @@ -83,7 +83,6 @@ private: const GameType type_; const boost::filesystem::path gamePath_; - const boost::filesystem::path localDataPath_; std::string masterFile_; };