summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/chat.cpp6
-rw-r--r--src/gui/chat.h5
2 files changed, 0 insertions, 11 deletions
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);