Skip to content

Commit

Permalink
CampaignDataLoader: Make CheckScriptVersion private
Browse files Browse the repository at this point in the history
It is only required for the load method if that succeeds the script
version was fine.
  • Loading branch information
Flamefire committed Jun 6, 2024
1 parent 13a991c commit 6102ff9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libs/libGamedata/lua/CampaignDataLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ class CampaignDataLoader : public LuaInterfaceBase
CampaignDataLoader(CampaignDescription& campaignDesc, const boost::filesystem::path& basePath);
~CampaignDataLoader() override;

bool CheckScriptVersion();

/// Return version of the interface. Changes here reflect breaking changes
static unsigned GetVersion();

Expand All @@ -30,4 +28,6 @@ class CampaignDataLoader : public LuaInterfaceBase
private:
CampaignDescription& campaignDesc_;
boost::filesystem::path basePath_;

bool CheckScriptVersion();
};
2 changes: 0 additions & 2 deletions tests/s25Main/campaign/testCampaignLuaFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ BOOST_AUTO_TEST_CASE(ScriptVersion)
CampaignDataLoader loader(desc, tmp);
rttr::test::LogAccessor logAcc;
BOOST_TEST_REQUIRE(loader.Load());
BOOST_TEST(loader.CheckScriptVersion());
logAcc.clearLog();
}

Expand All @@ -79,7 +78,6 @@ BOOST_AUTO_TEST_CASE(ScriptVersion)
CampaignDataLoader loader(desc, tmp);
rttr::test::LogAccessor logAcc;
BOOST_TEST_REQUIRE(loader.Load());
BOOST_TEST(loader.CheckScriptVersion());
logAcc.clearLog();
BOOST_TEST_PASSPOINT();
}
Expand Down

0 comments on commit 6102ff9

Please sign in to comment.