From 4e637cd1c772f0e3a9c039ea43ac9f51f54d0fcf Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 28 May 2019 17:41:28 +0200 Subject: [PATCH] tweaks: delete a now-unused function --- src/proto.h | 1 - src/utils.c | 11 ----------- 2 files changed, 12 deletions(-) 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)