diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | src/gui/chat.cpp | 6 | ||||
-rw-r--r-- | src/gui/chat.h | 5 |
3 files changed, 2 insertions, 11 deletions
@@ -5,6 +5,8 @@ * src/browserbox.cpp, src/browserbox.h, src/chat.h, src/main.cpp: Added possibility of length limitation to browserbox and used it for the chatlog (length set by the config option "ChatLogLength"). + * src/chat.cpp, src/chat.h: Removed some completely useless code + from the chat class. 2007-10-24 Philipp Sehmisch <tmw@crushnet.org> diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp index 10fc1577..44b332b1 100644 --- a/src/gui/chat.cpp +++ b/src/gui/chat.cpp @@ -48,8 +48,6 @@ ChatWindow::ChatWindow(Network *network): mTmpVisible(false) { setWindowName("Chat"); - mItems = 0; - mItemsKeep = 20; setResizable(true); setDefaultSize(0, (windowContainer->getHeight() - 123), 600, 100); @@ -98,10 +96,6 @@ ChatWindow::logic() void ChatWindow::chatLog(std::string line, int own) { - // Delete overhead from the end of the list - while ((int) mChatlog.size() > mItemsKeep) { - mChatlog.pop_back(); - } CHATLOG tmp; tmp.own = own; diff --git a/src/gui/chat.h b/src/gui/chat.h index 6be12b34..ad325339 100644 --- a/src/gui/chat.h +++ b/src/gui/chat.h @@ -202,11 +202,6 @@ class ChatWindow : public Window, public gcn::ActionListener, int own; }; - std::list<CHATLOG> mChatlog; /**< Chat log */ - - int mItems; - int mItemsKeep; - /** Constructs failed messages for actions */ std::string const_msg(CHATSKILL); |