diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-07-30 18:04:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-07-30 18:04:08 +0300 |
commit | 19738d5a2d5d96aef78e51da99061a22d7cf15bb (patch) | |
tree | dced9aacaf48cf32d4a1d4a7399861c96aebc22c /src/net/tmwa | |
parent | c96d089ab76316e5117c49e2ccdd3e9aab4bd29f (diff) | |
download | manaverse-19738d5a2d5d96aef78e51da99061a22d7cf15bb.tar.gz manaverse-19738d5a2d5d96aef78e51da99061a22d7cf15bb.tar.bz2 manaverse-19738d5a2d5d96aef78e51da99061a22d7cf15bb.tar.xz manaverse-19738d5a2d5d96aef78e51da99061a22d7cf15bb.zip |
Remove unused code from guildhandler.
Fix memory leak in guild class.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/guildhandler.cpp | 23 | ||||
-rw-r--r-- | src/net/tmwa/guildhandler.h | 13 |
2 files changed, 0 insertions, 36 deletions
diff --git a/src/net/tmwa/guildhandler.cpp b/src/net/tmwa/guildhandler.cpp index cbb32c3c8..43583971f 100644 --- a/src/net/tmwa/guildhandler.cpp +++ b/src/net/tmwa/guildhandler.cpp @@ -311,24 +311,6 @@ void GuildHandler::changeMemberPostion(GuildMember *member, int level) msg.writeInt32(level); // pos } -void GuildHandler::requestAlliance(int guildId A_UNUSED, - int otherGuildId A_UNUSED) -{ - // TODO -} - -void GuildHandler::requestAllianceResponse(int guildId A_UNUSED, - int otherGuildId A_UNUSED, - bool response A_UNUSED) -{ - // TODO -} - -void GuildHandler::endAlliance(int guildId A_UNUSED, int otherGuildId A_UNUSED) -{ - // TODO -} - void GuildHandler::changeNotice(int guildId, std::string msg1, std::string msg2) { @@ -338,9 +320,4 @@ void GuildHandler::changeNotice(int guildId, std::string msg1, msg.writeString(msg2, 120); // msg2 } -bool GuildHandler::isSupported() -{ - return true; -} - } // namespace TmwAthena diff --git a/src/net/tmwa/guildhandler.h b/src/net/tmwa/guildhandler.h index 58bfa2b0c..d8a1cc9e7 100644 --- a/src/net/tmwa/guildhandler.h +++ b/src/net/tmwa/guildhandler.h @@ -68,20 +68,7 @@ class GuildHandler : public Ea::GuildHandler, public MessageHandler void changeMemberPostion(GuildMember *member, int level); - void requestAlliance(int guildId, int otherGuildId); - - void requestAllianceResponse(int guildId, int otherGuildId, - bool response); - - void endAlliance(int guildId, int otherGuildId); - void changeNotice(int guildId, std::string msg1, std::string msg2); - - bool isSupported(); - - private: - // TmwAthena (and eAthena) only supports one guild per player -// Guild *mGuild; }; extern Ea::GuildTab *guildTab; |