# HG changeset patch # User Mikael Berthe # Date 1165255558 -3600 # Node ID c51ca5225516c4ccf987af656459e5bd8c1417a1 # Parent b9698c89f46d484a58686c03f2fa11641d45d789 Remove useless WindowWidth function diff -r b9698c89f46d -r c51ca5225516 mcabber/src/screen.c --- a/mcabber/src/screen.c Sun Dec 03 21:15:37 2006 +0100 +++ b/mcabber/src/screen.c Mon Dec 04 19:05:58 2006 +0100 @@ -117,13 +117,6 @@ /* Functions */ -static int scr_WindowWidth(WINDOW * win) -{ - int x, y; - getmaxyx(win, y, x); - return x; -} - static int FindColor(const char *name) { if (!strcmp(name, "default")) @@ -504,7 +497,7 @@ GList *hbuf_head; char date[64]; - width = scr_WindowWidth(win_entry->win); + width = getmaxx(win_entry->win); // Should the window be empty? if (win_entry->cleared) {