Removed unused class member from storyscreen controller
No longer used with the transition to GUI2 (337ef03120
)
This commit is contained in:
parent
fb71507d0d
commit
2e4e84d270
3 changed files with 3 additions and 5 deletions
|
@ -38,9 +38,8 @@ static lg::log_domain log_engine("engine");
|
|||
|
||||
namespace storyscreen {
|
||||
|
||||
controller::controller(const vconfig& data, const std::string& scenario_name, int segment_index)
|
||||
controller::controller(const vconfig& data, const std::string& scenario_name)
|
||||
: scenario_name_(scenario_name)
|
||||
, segment_index_(segment_index)
|
||||
, parts_()
|
||||
{
|
||||
assert(resources::gamedata != nullptr && "Ouch: gamedata is nullptr when initializing storyscreen controller");
|
||||
|
|
|
@ -36,7 +36,7 @@ class controller
|
|||
public:
|
||||
typedef std::shared_ptr< part > part_pointer_type;
|
||||
|
||||
controller(const vconfig& data, const std::string& scenario_name, int segment_index);
|
||||
controller(const vconfig& data, const std::string& scenario_name);
|
||||
|
||||
part_pointer_type get_part(int index) const
|
||||
{
|
||||
|
@ -53,7 +53,6 @@ private:
|
|||
void resolve_wml(const vconfig& cfg);
|
||||
|
||||
std::string scenario_name_;
|
||||
int segment_index_;
|
||||
|
||||
// The part cache.
|
||||
std::vector< part_pointer_type > parts_;
|
||||
|
|
|
@ -37,7 +37,7 @@ void show_story(CVideo& video, const std::string &scenario_name,
|
|||
return;
|
||||
}
|
||||
|
||||
storyscreen::controller controller(vconfig(cfg, true), scenario_name, 0);
|
||||
storyscreen::controller controller(vconfig(cfg, true), scenario_name);
|
||||
|
||||
gui2::dialogs::story_viewer::display(controller, video);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue