changeset 1077:c51ca5225516

Remove useless WindowWidth function
author Mikael Berthe <mikael@lilotux.net>
date Mon, 04 Dec 2006 19:05:58 +0100
parents b9698c89f46d
children 7866dbaf67a6
files mcabber/src/screen.c
diffstat 1 files changed, 1 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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) {