Eliminate variable::manager.

With the simplification of vconfig, this class no longer serves
a purpose.
This commit is contained in:
JaMiT 2013-09-21 11:33:35 -05:00
parent 919efb4ed5
commit 52cfe2b17d
4 changed files with 0 additions and 28 deletions

View File

@ -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);

View File

@ -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.

View File

@ -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),

View File

@ -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
{