summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-01 01:24:21 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-01 02:37:10 +0300
commitd8e382e49317adf9717d83509c6975f8958f5043 (patch)
tree3d25ad19a422932b22a32ee26be6f5ff69d8db4b /src/net/tmwa
parent8076d645b7a4271b9b5f100f5ea881891fea7d7c (diff)
downloadmv-d8e382e49317adf9717d83509c6975f8958f5043.tar.gz
mv-d8e382e49317adf9717d83509c6975f8958f5043.tar.bz2
mv-d8e382e49317adf9717d83509c6975f8958f5043.tar.xz
mv-d8e382e49317adf9717d83509c6975f8958f5043.zip
Remove ServerFeatures haveServerIgnore because it was used only in tmwa.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/chathandler.cpp8
-rw-r--r--src/net/tmwa/serverfeatures.cpp5
-rw-r--r--src/net/tmwa/serverfeatures.h2
3 files changed, 0 insertions, 15 deletions
diff --git a/src/net/tmwa/chathandler.cpp b/src/net/tmwa/chathandler.cpp
index 2abebf211..94bfa748c 100644
--- a/src/net/tmwa/chathandler.cpp
+++ b/src/net/tmwa/chathandler.cpp
@@ -180,18 +180,10 @@ void ChatHandler::processRaw(MessageOut &restrict outMsg,
void ChatHandler::ignoreAll() const
{
- if (!serverFeatures->haveServerIgnore())
- return;
- createOutPacket(CMSG_IGNORE_ALL);
- outMsg.writeInt8(0, "flag");
}
void ChatHandler::unIgnoreAll() const
{
- if (!serverFeatures->haveServerIgnore())
- return;
- createOutPacket(CMSG_IGNORE_ALL);
- outMsg.writeInt8(1, "flag");
}
void ChatHandler::ignore(const std::string &nick) const
diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp
index 1363ac507..72841b374 100644
--- a/src/net/tmwa/serverfeatures.cpp
+++ b/src/net/tmwa/serverfeatures.cpp
@@ -64,11 +64,6 @@ bool ServerFeatures::haveLookSelection() const
return false;
}
-bool ServerFeatures::haveServerIgnore() const
-{
- return false;
-}
-
bool ServerFeatures::haveMove3() const
{
return tmwServerVersion >= 0x0f0512 && tmwServerVersion <= 0xf0706;
diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h
index a252f3f61..c23b45f11 100644
--- a/src/net/tmwa/serverfeatures.h
+++ b/src/net/tmwa/serverfeatures.h
@@ -46,8 +46,6 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveLookSelection() const override final A_CONST;
- bool haveServerIgnore() const override final;
-
bool haveMove3() const override final;
bool haveItemColors() const override final A_CONST;