summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2010-03-26 17:50:23 -0400
committerGaetan Nadon <memsize@videotron.ca>2010-03-26 17:50:23 -0400
commitfd058da6c1931fa824dd8c07e9130054176fedd7 (patch)
tree18ca7cbaa6dc5743042c16e7a3376bc419b5c591
parenta69c6665e3ad30cfc86acbb7e2c75a0b7b6efa57 (diff)
xprint: remove conditional code regarding xprint
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
-rw-r--r--xset.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/xset.c b/xset.c
index 7458ee9..7fbb162 100644
--- a/xset.c
+++ b/xset.c
@@ -50,10 +50,6 @@ in this Software without prior written authorization from The Open Group.
# define XF86MISC
#endif
-#if defined(HAVE_X11_EXTENSIONS_PRINT_H)
-# define BUILD_PRINTSUPPORT
-#endif
-
#if defined(HAVE_X11_EXTENSIONS_FONTCACHE_H) && defined(HAVE_X11_EXTENSIONS_FONTCACHEP_H)
# define FONTCACHE
#endif
@@ -108,9 +104,6 @@ in this Software without prior written authorization from The Open Group.
static Status set_font_cache(Display *, long, long, long);
static void query_cache_status(Display *dpy);
#endif
-#ifdef BUILD_PRINTSUPPORT
-# include <X11/extensions/Print.h>
-#endif
#define ON 1
#define OFF 0
@@ -379,19 +372,6 @@ main(int argc, char *argv[])
}
}
#endif
-#ifdef BUILD_PRINTSUPPORT
- else if (strcmp(arg, "rehashprinterlist") == 0) {
- /* rehash list of printers */
- short dummy;
-
- if (XpQueryVersion(dpy, &dummy, &dummy)) {
- XpRehashPrinterList(dpy);
- } else {
- fprintf(stderr,
- "server does not have extension for rehashprinterlist option\n");
- }
- }
-#endif
else if (strcmp(arg, "fp") == 0) { /* set font path */
if (i >= argc) {
arg = "default";
@@ -1682,11 +1662,6 @@ usage(char *fmt, ...)
fprintf(stderr, " Show font cache statistics:\n");
fprintf(stderr, "\t fc s\n");
#endif
-#ifdef BUILD_PRINTSUPPORT
- fprintf(stderr, " To control Xprint features:\n");
- fprintf(stderr,
- "\t rehashprinterlist Recomputes the list of available printers\n");
-#endif
fprintf(stderr, " To set the font path:\n");
fprintf(stderr, "\t fp= path[,path...]\n");
fprintf(stderr, " To restore the default font path:\n");