mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-03 22:11:02 +00:00
Removed unused class game_filter_string_part.
This commit is contained in:
parent
f93d3516e1
commit
f9ca400cdd
@ -381,13 +381,6 @@ bool game_filter_and_stack::match(const game_info &game) const
|
||||
return true;
|
||||
}
|
||||
|
||||
bool game_filter_string_part::match(const game_info &game) const
|
||||
{
|
||||
const std::string& gs = game.*member_;
|
||||
return std::search(gs.begin(), gs.end(), value_.begin(), value_.end(),
|
||||
chars_equal_insensitive) != gs.end();
|
||||
}
|
||||
|
||||
bool game_filter_general_string_part::match(const game_info &game) const
|
||||
{
|
||||
const std::string& s1 = game.map_info;
|
||||
|
@ -206,21 +206,6 @@ private:
|
||||
T value_;
|
||||
};
|
||||
|
||||
class game_filter_string_part : public game_filter_base
|
||||
{
|
||||
public:
|
||||
game_filter_string_part(std::string game_info::*member, const std::string& value)
|
||||
: member_(member), value_(value)
|
||||
{
|
||||
}
|
||||
|
||||
bool match(const game_info& game) const;
|
||||
|
||||
private:
|
||||
std::string game_info::*member_;
|
||||
std::string value_;
|
||||
};
|
||||
|
||||
class game_filter_general_string_part : public game_filter_base
|
||||
{
|
||||
public:
|
||||
|
Loading…
x
Reference in New Issue
Block a user