From e3edd8b3e15e351ba173b5a631577c9d8ec868de Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 30 Jul 2022 13:55:19 +0200 Subject: [PATCH] remove unused selclear_ handler; always using selnotify anyway --- x.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/x.c b/x.c index 0c0778b..23af62b 100644 --- a/x.c +++ b/x.c @@ -179,7 +179,6 @@ static void bpress(XEvent *); static void bmotion(XEvent *); static void propnotify(XEvent *); static void selnotify(XEvent *); -static void selclear_(XEvent *); static void selrequest(XEvent *); static void setsel(char *, Time); static void mousesel(XEvent *, int); @@ -202,11 +201,6 @@ static void (*handler[LASTEvent])(XEvent *) = { [MotionNotify] = bmotion, [ButtonPress] = bpress, [ButtonRelease] = brelease, -/* - * Uncomment if you want the selection to disappear when you select something - * different in another window. - */ -/* [SelectionClear] = selclear_, */ [SelectionNotify] = selnotify, /* * PropertyNotify is only turned on when there is some INCR transfer happening @@ -600,12 +594,6 @@ xclipcopy(void) clipcopy(NULL); } -void -selclear_(XEvent *e) -{ - selclear(); -} - void selrequest(XEvent *e) {