X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fpicsmap.c;h=6ca7c6d416be92e7041b2fa175d9cfd8883fb778;hp=c9c5770145c202bef5b540e945a7b81bf0ca310c;hb=6b4f5830b7910188b532d661f79775306715f67e;hpb=eccca377f55c70b12e3e92621d94d1e1c1fcfb7d diff --git a/test/picsmap.c b/test/picsmap.c index c9c57701..6ca7c6d4 100644 --- a/test/picsmap.c +++ b/test/picsmap.c @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: picsmap.c,v 1.127 2019/01/21 19:45:57 tom Exp $ + * $Id: picsmap.c,v 1.128 2019/02/02 20:03:13 tom Exp $ * * Author: Thomas E. Dickey * @@ -61,10 +61,6 @@ #if HAVE_TSEARCH #include -#if HAVE_TDESTROY && !defined(_GNU_SOURCE) -#undef HAVE_TDESTROY -#define HAVE_TDESTROY 0 -#endif #endif #undef CUR /* use only the curses interface */ @@ -383,26 +379,15 @@ finish_c_values(PICS_HEAD * head) reading_ncols = 0; } -#if HAVE_TSEARCH && HAVE_TDESTROY -static void -never_free(void *node GCC_UNUSED) -{ -} -#endif - static void dispose_c_values(void) { #if HAVE_TSEARCH if (reading_ntree != 0) { -#if HAVE_TDESTROY - tdestroy(reading_ntree, never_free); -#else int n; for (n = 0; n < reading_last; ++n) { tdelete(I2P(n), &reading_ntree, compare_c_values); } -#endif reading_ntree = 0; } #endif