mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-04 17:31:15 +00:00
Eliminate variable::manager.
With the simplification of vconfig, this class no longer serves a purpose.
This commit is contained in:
parent
919efb4ed5
commit
52cfe2b17d
@ -330,7 +330,6 @@ void remove_event_handler(const std::string & id)
|
||||
|
||||
|
||||
manager::manager(const config& cfg)
|
||||
: variable_manager()
|
||||
{
|
||||
BOOST_FOREACH(const config &ev, cfg.child_range("event")) {
|
||||
add_event_handler(ev);
|
||||
|
@ -25,7 +25,6 @@
|
||||
#define GAME_EVENTS_HANDLERS_H_INCLUDED
|
||||
|
||||
#include "../config.hpp"
|
||||
#include "../variable.hpp"
|
||||
|
||||
#include <boost/noncopyable.hpp>
|
||||
|
||||
@ -84,9 +83,6 @@ namespace game_events
|
||||
static void stop_buffering();
|
||||
/// Commits the event handlers that were buffered.
|
||||
static void commit_buffer();
|
||||
|
||||
private:
|
||||
variable::manager variable_manager;
|
||||
};
|
||||
|
||||
/// Create an event handler.
|
||||
|
@ -358,13 +358,6 @@ vconfig::all_children_iterator vconfig::ordered_end() const
|
||||
return all_children_iterator(cfg_->ordered_end(), cache_);
|
||||
}
|
||||
|
||||
namespace variable
|
||||
{
|
||||
manager::~manager()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
scoped_wml_variable::scoped_wml_variable(const std::string& var_name) :
|
||||
previous_val_(),
|
||||
var_name_(var_name),
|
||||
|
@ -22,7 +22,6 @@
|
||||
|
||||
#include <utility>
|
||||
|
||||
class game_state;
|
||||
class unit_map;
|
||||
|
||||
/**
|
||||
@ -161,21 +160,6 @@ struct vconfig::all_children_iterator::pointer_proxy
|
||||
const value_type *operator->() const { return &p; }
|
||||
};
|
||||
|
||||
namespace variable
|
||||
{
|
||||
|
||||
/**
|
||||
* Used to clear the cache for variables.
|
||||
*/
|
||||
class manager
|
||||
{
|
||||
public:
|
||||
~manager();
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
class scoped_wml_variable
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user