diff --git a/src/proto.h b/src/proto.h index a83a4590..b3b33c8c 100644 --- a/src/proto.h +++ b/src/proto.h @@ -571,7 +571,6 @@ bool is_separate_word(size_t position, size_t length, const char *buf); #endif const char *strstrwrapper(const char *haystack, const char *needle, const char *start); -void nperror(const char *s); void *nmalloc(size_t howmuch); void *nrealloc(void *ptr, size_t howmuch); char *mallocstrncpy(char *dest, const char *src, size_t n); diff --git a/src/utils.c b/src/utils.c index 4ff5dc51..232e602e 100644 --- a/src/utils.c +++ b/src/utils.c @@ -287,17 +287,6 @@ const char *strstrwrapper(const char *haystack, const char *needle, return mbstrcasestr(start, needle); } -/* This is a wrapper for the perror() function. The wrapper temporarily - * leaves curses mode, calls perror() (which writes to stderr), and then - * reenters curses mode, updating the screen in the process. Note that - * nperror() causes the window to flicker once. */ -void nperror(const char *s) -{ - endwin(); - perror(s); - doupdate(); -} - /* This is a wrapper for the malloc() function that properly handles * things when we run out of memory. */ void *nmalloc(size_t howmuch)