From: Quanah Gibson-Mount Date: Thu, 11 Jan 2024 18:32:03 +0000 (+0000) Subject: ITS#10150 - Remove dead code X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7c55484ee153047efd0e562fc1638c1a2525f320;p=thirdparty%2Fopenldap.git ITS#10150 - Remove dead code Remove dead code for ancient version of macos --- diff --git a/libraries/liblber/dtest.c b/libraries/liblber/dtest.c index 4785254cbb..cfe3963637 100644 --- a/libraries/liblber/dtest.c +++ b/libraries/liblber/dtest.c @@ -38,10 +38,6 @@ #include #include -#ifdef HAVE_CONSOLE_H -#include -#endif - #include static void usage( const char *name ) @@ -70,11 +66,6 @@ main( int argc, char **argv ) return( EXIT_FAILURE ); } -#ifdef HAVE_CONSOLE_H - ccommand( &argv ); - cshow( stdout ); -#endif - sb = ber_sockbuf_alloc(); fd = fileno( stdin ); ber_sockbuf_add_io( sb, &ber_sockbuf_io_fd, LBER_SBIOD_LEVEL_PROVIDER, diff --git a/libraries/liblber/etest.c b/libraries/liblber/etest.c index 3f608787a2..5ae3f74771 100644 --- a/libraries/liblber/etest.c +++ b/libraries/liblber/etest.c @@ -38,10 +38,6 @@ #include #include -#ifdef HAVE_CONSOLE_H -#include -#endif /* HAVE_CONSOLE_H */ - #include "lber.h" static void usage( const char *name ) @@ -79,19 +75,7 @@ main( int argc, char **argv ) return( EXIT_FAILURE ); } -#ifdef HAVE_CONSOLE_H - ccommand( &argv ); - cshow( stdout ); - - if (( fd = open( "lber-test", O_WRONLY|O_CREAT|O_TRUNC|O_BINARY )) - < 0 ) { - perror( "open" ); - return( EXIT_FAILURE ); - } - -#else fd = fileno(stdout); -#endif sb = ber_sockbuf_alloc(); ber_sockbuf_add_io( sb, &ber_sockbuf_io_fd, LBER_SBIOD_LEVEL_PROVIDER,