summaryrefslogtreecommitdiff
path: root/common/action.cpp
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-11-27 02:43:27 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-11-27 02:43:27 +0100
commit55ae5202de17fb7f7d1d00fc76defa194d7f9b06 (patch)
treee0b99d32048cb5ca744135495800ab597a87e9c1 /common/action.cpp
parent90d77e977fe0db416a260c286b36079ab0694f21 (diff)
Added List class to avoid reinventing features in each case.
Diffstat (limited to 'common/action.cpp')
-rw-r--r--common/action.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/common/action.cpp b/common/action.cpp
index 58b7392..77988d6 100644
--- a/common/action.cpp
+++ b/common/action.cpp
@@ -12,11 +12,3 @@ Action::Action(Type ty, int ta) : type(ty), target(ta) {
bool Action::operator==(const Action& other) {
return type == other.type && target == other.target;
}
-
-Actions::operator bool() {
- return !empty();
-}
-
-bool Actions::contains(Action action) {
- return std::find(begin(), end(), action) != end();
-}