mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-10 22:56:42 +00:00
remove unused function
This commit is contained in:
parent
8fc40ae227
commit
a719d6e2ab
@ -164,22 +164,6 @@ void manager::set_modifications(const std::vector<std::string>& modifications)
|
|||||||
modifications_ = 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)
|
void manager::layout_widgets(int startx, int starty, int w)
|
||||||
{
|
{
|
||||||
int ypos = starty;
|
int ypos = starty;
|
||||||
|
@ -34,15 +34,6 @@ namespace mp
|
|||||||
namespace options
|
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
|
class option_display
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -208,20 +199,6 @@ public:
|
|||||||
*/
|
*/
|
||||||
void set_modifications(const std::vector<std::string>& ids);
|
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 layout_widgets(int startx, int starty, int w);
|
||||||
void process_event();
|
void process_event();
|
||||||
void hide_children(bool hide=true);
|
void hide_children(bool hide=true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user