summaryrefslogtreecommitdiff
path: root/src/xtra1.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2011-02-19 18:44:20 +0100
committerBardur Arantsson <bardur@scientician.net>2011-02-19 19:32:45 +0100
commit56d359f285b8c73a9fb752f6fb4cd00ecaecba6e (patch)
tree376de690949125b2fab952750aa7277e99a7f49d /src/xtra1.c
parentaa87bec3246b8441343317f0e26e97edb00f6a75 (diff)
Remove IRC functionality and socket code.
Diffstat (limited to 'src/xtra1.c')
-rw-r--r--src/xtra1.c68
1 files changed, 0 insertions, 68 deletions
diff --git a/src/xtra1.c b/src/xtra1.c
index 2543baab..8bc698b3 100644
--- a/src/xtra1.c
+++ b/src/xtra1.c
@@ -1250,67 +1250,6 @@ void fix_message(void)
/*
- * Hack -- display recent IRC messages in sub-windows
- *
- * XXX XXX XXX Adjust for width and split messages
- */
-void fix_irc_message(void)
-{
- int j, i, k;
- int w, h;
- int x, y;
-
- /* Scan windows */
- for (j = 0; j < 8; j++)
- {
- term *old = Term;
-
- /* No window */
- if (!angband_term[j]) continue;
-
- /* No relevant flags */
- if (!(window_flag[j] & (PW_IRC))) continue;
-
- /* Activate */
- Term_activate(angband_term[j]);
-
- /* Get size */
- Term_get_size(&w, &h);
-
- Term_clear();
-
- /* Dump messages */
- k = 0;
- for (i = 0; ; i++)
- {
- byte type = message_type((s16b)i);
-
- if (k >= h) break;
- if (MESSAGE_NONE == type) break;
- if (MESSAGE_IRC != type) continue;
-
- /* Dump the message on the appropriate line */
- display_message(0, (h - 1) - k, strlen(message_str((s16b)i)), message_color((s16b)i), message_str((s16b)i));
-
- /* Cursor */
- Term_locate(&x, &y);
-
- /* Clear to end of line */
- Term_erase(x, y, 255);
-
- k++;
- }
-
- /* Fresh */
- Term_fresh();
-
- /* Restore */
- Term_activate(old);
- }
-}
-
-
-/*
* Hack -- display overhead view in sub-windows
*
* Note that the "player" symbol does NOT appear on the map.
@@ -4452,13 +4391,6 @@ void window_stuff(void)
}
/* Display overhead view */
- if (p_ptr->window & (PW_IRC))
- {
- p_ptr->window &= ~(PW_IRC);
- fix_irc_message();
- }
-
- /* Display overhead view */
if (p_ptr->window & (PW_OVERHEAD))
{
p_ptr->window &= ~(PW_OVERHEAD);