summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2007-10-26 00:38:00 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2007-10-26 00:38:00 +0000
commitfb993c22ae46aba68c02e3c669804a25b24d2c73 (patch)
tree955063eda932b1f9f2264acce54bac71dcc8572d /src/gui
parentdb8b740bfa402c929247efd954096fac7b72b2a3 (diff)
downloadmana-client-fb993c22ae46aba68c02e3c669804a25b24d2c73.tar.gz
mana-client-fb993c22ae46aba68c02e3c669804a25b24d2c73.tar.bz2
mana-client-fb993c22ae46aba68c02e3c669804a25b24d2c73.tar.xz
mana-client-fb993c22ae46aba68c02e3c669804a25b24d2c73.zip
Removed some completely useless code from the chat class.
Diffstat (limited to 'src/gui')
-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);