summaryrefslogtreecommitdiff
path: root/src/listeners
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-27 16:25:59 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-27 16:25:59 +0300
commit370612270d09fe557c13b97119b259b5c2eb4b45 (patch)
tree1ac19217b62e945b91e5201cc0379a9b1efc7600 /src/listeners
parenta6f6dc9c2db87ed852cac1f8a3047f9b1d3efac0 (diff)
downloadplus-370612270d09fe557c13b97119b259b5c2eb4b45.tar.gz
plus-370612270d09fe557c13b97119b259b5c2eb4b45.tar.bz2
plus-370612270d09fe557c13b97119b259b5c2eb4b45.tar.xz
plus-370612270d09fe557c13b97119b259b5c2eb4b45.zip
Remove depricated event and depricated listener.
Diffstat (limited to 'src/listeners')
-rw-r--r--src/listeners/depricatedlistener.cpp39
-rw-r--r--src/listeners/depricatedlistener.h40
2 files changed, 0 insertions, 79 deletions
diff --git a/src/listeners/depricatedlistener.cpp b/src/listeners/depricatedlistener.cpp
deleted file mode 100644
index c853c028d..000000000
--- a/src/listeners/depricatedlistener.cpp
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * The ManaPlus Client
- * Copyright (C) 2010 The Mana Developers
- * Copyright (C) 2011-2014 The ManaPlus Developers
- *
- * This file is part of The ManaPlus Client.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#include "listeners/depricatedlistener.h"
-
-#include "debug.h"
-
-DepricatedListener::~DepricatedListener()
-{
- DepricatedEvent::remove(this);
-}
-
-void DepricatedListener::listen(Channels channel)
-{
- DepricatedEvent::bind(this, channel);
-}
-
-void DepricatedListener::ignore(Channels channel)
-{
- DepricatedEvent::unbind(this, channel);
-}
diff --git a/src/listeners/depricatedlistener.h b/src/listeners/depricatedlistener.h
deleted file mode 100644
index 175eec74a..000000000
--- a/src/listeners/depricatedlistener.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * The ManaPlus Client
- * Copyright (C) 2010 The Mana Developers
- * Copyright (C) 2011-2014 The ManaPlus Developers
- *
- * This file is part of The ManaPlus Client.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef LISTENERS_DEPRICATEDLISTENER_H
-#define LISTENERS_DEPRICATEDLISTENER_H
-
-#include "depricatedevent.h"
-
-class DepricatedListener
-{
- public:
- virtual ~DepricatedListener();
-
- void listen(Channels channel);
-
- void ignore(Channels channel);
-
- virtual void processEvent(const Channels channel,
- const DepricatedEvent &event) = 0;
-};
-
-#endif // LISTENERS_DEPRICATEDLISTENER_H