X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fpicsmap.c;h=6ca7c6d416be92e7041b2fa175d9cfd8883fb778;hp=c9c5770145c202bef5b540e945a7b81bf0ca310c;hb=4677e861e7e0127b8622b3340ceb6f1278b91244;hpb=fe8c285d2a2770ee40523303dbf27a9fd8d01188 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