Skip to content

Commit

Permalink
Removed the no longer used SetCurrentCampaign() function, which was e…
Browse files Browse the repository at this point in the history
…xposed to Lua
  • Loading branch information
Andrettin committed Oct 4, 2021
1 parent 9054c2f commit fe59774
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 23 deletions.
21 changes: 0 additions & 21 deletions src/quest/campaign.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,27 +286,6 @@ int campaign::get_tree_width() const

}

/**
** @brief Set the current campaign
**
** @param campaign_ident The campaign's string identifier
*/
void SetCurrentCampaign(const std::string &campaign_ident)
{
if (campaign_ident.empty()) {
game::get()->set_current_campaign(nullptr);
return;
}

campaign *campaign = campaign::get(campaign_ident);
game::get()->set_current_campaign(campaign);
}

/**
** @brief Get the current campaign
**
** @return The string identifier of the current campaign
*/
std::string GetCurrentCampaign()
{
const wyrmgus::campaign *current_campaign = wyrmgus::game::get()->get_current_campaign();
Expand Down
1 change: 0 additions & 1 deletion src/quest/campaign.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,5 +198,4 @@ class campaign final : public detailed_data_entry, public data_type<campaign>, p

}

extern void SetCurrentCampaign(const std::string &campaign_ident);
extern std::string GetCurrentCampaign();
1 change: 0 additions & 1 deletion src/tolua/campaign.pkg
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
$#include "quest/campaign.h"

extern void SetCurrentCampaign(std::string campaign_ident);
extern std::string GetCurrentCampaign();

int get_difficulty_index();
Expand Down

0 comments on commit fe59774

Please sign in to comment.