remove some cruft
authorPierre Habouzit <madcoder@debian.org>
Sun, 12 Nov 2006 00:44:08 +0000 (01:44 +0100)
committerPierre Habouzit <madcoder@debian.org>
Sun, 12 Nov 2006 00:44:08 +0000 (01:44 +0100)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
lib.c
lib.h

diff --git a/lib.c b/lib.c
index 39676a5..7dd53a0 100644 (file)
--- a/lib.c
+++ b/lib.c
@@ -8,40 +8,21 @@
  * please see the file GPL in the top level source directory.
  */
 
-/*
- * This file used to contain some more functions, namely those
- * which are now in muttlib.c.  They have been removed, so we have
- * some of our "standard" functions in external programs, too.
- */
-
 #if HAVE_CONFIG_H
 # include "config.h"
 #endif
 
-#include <string.h>
-#include <ctype.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <sys/wait.h>
-#include <errno.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <pwd.h>
-
-#include <lib-lib/macros.h>
-#include <lib-lib/mem.h>
-#include <lib-lib/str.h>
-#include <lib-lib/debug.h>
+#include <stdio.h>
+#include <stdarg.h>
 
 #include "lib.h"
 
 void mutt_nocurses_error (const char *fmt, ...)
 {
-  va_list ap;
+    va_list ap;
 
-  va_start (ap, fmt);
-  vfprintf (stderr, fmt, ap);
-  va_end (ap);
-  fputc ('\n', stderr);
+    va_start(ap, fmt);
+    vfprintf(stderr, fmt, ap);
+    va_end(ap);
+    fputc('\n', stderr);
 }
-
diff --git a/lib.h b/lib.h
index 3985310..11dcf66 100644 (file)
--- a/lib.h
+++ b/lib.h
@@ -8,31 +8,10 @@
  * please see the file GPL in the top level source directory.
  */
 
-/* mutt functions which are generally useful. */
-
 #ifndef _LIB_H
 # define _LIB_H
 
-# include <stdio.h>
-# include <string.h>
-# ifdef HAVE_UNISTD_H
-#  include <unistd.h>           /* needed for SEEK_SET */
-# endif
-# include <sys/types.h>
-# include <sys/stat.h>
-# include <time.h>
-# include <limits.h>
-# include <stdarg.h>
-# include <signal.h>
-
-# ifndef _POSIX_PATH_MAX
-#  include <posix1_lim.h>
-# endif
-
 void mutt_exit (int);
-
-/* The actual library functions. */
-
 void mutt_nocurses_error (const char *, ...);
 
 #endif