summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-07-17 02:15:14 +0000
committerTor Andersson <tor@ghostscript.com>2010-07-17 02:15:14 +0000
commitb811eefa7a74c1481b423a67f2ceea6ae879cfc7 (patch)
tree8f65c53964af4be8e788a8a5047922a46a028dd3 /apps
parent3ac42a2ad5c49724d4972bac4f729d1a2ed57423 (diff)
downloadmupdf-b811eefa7a74c1481b423a67f2ceea6ae879cfc7.tar.xz
Silence warnings.
Diffstat (limited to 'apps')
-rw-r--r--apps/x11_main.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/apps/x11_main.c b/apps/x11_main.c
index 2582580f..395f9fd8 100644
--- a/apps/x11_main.c
+++ b/apps/x11_main.c
@@ -361,18 +361,6 @@ void windrawstring(pdfapp_t *app, int x, int y, char *s)
XDrawString(xdpy, xwin, xgc, x, y, s, strlen(s));
}
-static void windrawpageno(pdfapp_t *app)
-{
- char s[100];
-
- int ret = snprintf(s, 100, "Page %d/%d", gapp.pageno, gapp.pagecount);
- if (ret >= 0)
- {
- isshowingpage = 1;
- windrawstringxor(&gapp, 10, 20, s);
- }
-}
-
void windocopy(pdfapp_t *app)
{
unsigned short copyucs2[16 * 1024];
@@ -398,8 +386,6 @@ void windocopy(pdfapp_t *app)
*utf8 = 0;
*latin1 = 0;
- printf("oncopy utf8=%d latin1=%d\n", strlen(copyutf8), strlen(copylatin1));
-
XSetSelectionOwner(xdpy, XA_PRIMARY, xwin, copytime);
justcopied = 1;
@@ -409,8 +395,6 @@ void onselreq(Window requestor, Atom selection, Atom target, Atom property, Time
{
XEvent nevt;
- printf("onselreq\n");
-
if (property == None)
property = target;
@@ -438,7 +422,6 @@ void onselreq(Window requestor, Atom selection, Atom target, Atom property, Time
else if (target == XA_STRING)
{
- printf(" -> string %d\n", strlen(copylatin1));
XChangeProperty(xdpy, requestor, property, target,
8, PropModeReplace,
(unsigned char *)copylatin1, strlen(copylatin1));
@@ -446,7 +429,6 @@ void onselreq(Window requestor, Atom selection, Atom target, Atom property, Time
else if (target == XA_UTF8_STRING)
{
- printf(" -> utf8string\n");
XChangeProperty(xdpy, requestor, property, target,
8, PropModeReplace,
(unsigned char *)copyutf8, strlen(copyutf8));
@@ -454,7 +436,6 @@ void onselreq(Window requestor, Atom selection, Atom target, Atom property, Time
else
{
- printf(" -> unknown\n");
nevt.xselection.property = None;
}