Author: silene
Date: Sat Feb 13 12:20:43 2010
New Revision: 41183
URL: http://svn.gna.org/viewcvs/wesnoth?rev=41183&view=rev
Log:
Removed unused class game_filter_string_part.
Modified:
trunk/src/gui/dialogs/lobby/lobby_data.cpp
trunk/src/gui/dialogs/lobby/lobby_data.hpp
Modified: trunk/src/gui/dialogs/lobby/lobby_data.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/dialogs/lobby/lobby_data.cpp?rev=41183&r1=41182&r2=41183&view=diff
==============================================================================
--- trunk/src/gui/dialogs/lobby/lobby_data.cpp (original)
+++ trunk/src/gui/dialogs/lobby/lobby_data.cpp Sat Feb 13 12:20:43 2010
@@ -381,13 +381,6 @@
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;
Modified: trunk/src/gui/dialogs/lobby/lobby_data.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/dialogs/lobby/lobby_data.hpp?rev=41183&r1=41182&r2=41183&view=diff
==============================================================================
--- trunk/src/gui/dialogs/lobby/lobby_data.hpp (original)
+++ trunk/src/gui/dialogs/lobby/lobby_data.hpp Sat Feb 13 12:20:43 2010
@@ -206,21 +206,6 @@
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:
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits