From 74003cdc55c5ca091c0804328c3d140b2b38baa4 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 26 Jun 2009 21:08:37 -0700 Subject: Remove unused Xprint support BUILD_PRINTSUPPORT has never been defined in autoconf/automake builds, so it hasn't been built since 6.9 Signed-off-by: Alan Coopersmith --- dsimple.c | 95 ++++----------------------------------------------------------- 1 file changed, 6 insertions(+), 89 deletions(-) (limited to 'dsimple.c') diff --git a/dsimple.c b/dsimple.c index e9eda72..9139b00 100644 --- a/dsimple.c +++ b/dsimple.c @@ -41,9 +41,6 @@ from The Open Group. * Written by Mark Lillibridge. Last updated 7/1/87 */ -#ifdef BUILD_PRINTSUPPORT -#include -#endif /* BUILD_PRINTSUPPORT */ #include "dsimple.h" /* @@ -61,10 +58,6 @@ from The Open Group. char *program_name = "unknown_program"; Display *dpy = NULL; int screen = 0; -Bool printer_output = False; /* Video or printer output ? */ -#ifdef BUILD_PRINTSUPPORT -XPContext pcontext = None; -#endif /* BUILD_PRINTSUPPORT */ static void _bitmap_error(int, char *); @@ -136,42 +129,6 @@ Get_Display_Name(int *pargc/* MODIFIED */, char **argv/* MODIFIED */) } -#ifdef BUILD_PRINTSUPPORT -/* - * Get_Printer_Name (argc, argv) Look for -printer, -p, - * If found, remove it from command line. Don't go past a lone -. - */ -char * -Get_Printer_Name(int *pargc/* MODIFIED */, char **argv/* MODIFIED */) -{ - int argc = *pargc; - char **pargv = argv+1; - char *printername = NULL; - int i; - - for (i = 1; i < argc; i++) { - char *arg = argv[i]; - - if (!strcmp (arg, "-printer") || !strcmp (arg, "-p")) { - if (++i >= argc) usage (); - - printername = argv[i]; - *pargc -= 2; - continue; - } - if (!strcmp(arg,"-")) { - while (i