remove unused function

This commit is contained in:
gfgtdf 2015-06-18 14:57:47 +02:00
parent 8fc40ae227
commit a719d6e2ab
2 changed files with 0 additions and 39 deletions

View File

@ -164,22 +164,6 @@ void manager::set_modifications(const std::vector<std::string>& modifications)
modifications_ = modifications;
}
void manager::insert_element(elem_type type, const config& data, int pos)
{
switch (type)
{
case SCENARIO:
options_info_.add_child_at("multiplayer", data, pos);
break;
case ERA:
options_info_.add_child_at("era", data, pos);
break;
case MODIFICATION:
options_info_.add_child_at("modification", data, pos);
break;
}
}
void manager::layout_widgets(int startx, int starty, int w)
{
int ypos = starty;

View File

@ -34,15 +34,6 @@ namespace mp
namespace options
{
// TODO: there's an identical enum in depcheck.hpp, maybe we should factor
// out?
enum elem_type
{
SCENARIO,
ERA,
MODIFICATION
};
class option_display
{
public:
@ -208,20 +199,6 @@ public:
*/
void set_modifications(const std::vector<std::string>& ids);
/**
* Add options information of an era/scenario/modification not yet in the
* database.
*
* @param type The type of the element,
*
* @param data The config object which holds the
* information about the element's options in
* an [options] child.
*
* @param pos The position to insert the element into.
*/
void insert_element(elem_type type, const config& data, int pos);
void layout_widgets(int startx, int starty, int w);
void process_event();
void hide_children(bool hide=true);