From 7a46dd30d332bc1d42f82b0391e806d3b067ebbd Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Thu, 4 Sep 2008 09:18:40 -0700 Subject: [PATCH] XQuartz: Dead code removal (cherry picked from commit 2e45344870f5d17181df6407da3448991036d783) --- hw/xquartz/darwin.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/hw/xquartz/darwin.c b/hw/xquartz/darwin.c index 19fe3238b..b26110612 100644 --- a/hw/xquartz/darwin.c +++ b/hw/xquartz/darwin.c @@ -318,29 +318,6 @@ static Bool DarwinAddScreen(int index, ScreenPtr pScreen, int argc, char **argv) ============================================================================= */ -#if 0 -/* - * DarwinChangePointerControl - * Set mouse acceleration and thresholding - * FIXME: We currently ignore the threshold in ctrl->threshold. - */ -static void DarwinChangePointerControl( - DeviceIntPtr device, - PtrCtrl *ctrl ) -{ - kern_return_t kr; - double acceleration; - - if (!darwinMouseAccelChange) - return; - - acceleration = ctrl->num / ctrl->den; - kr = IOHIDSetMouseAcceleration( darwinParamConnect, acceleration ); - if (kr != KERN_SUCCESS) - ErrorF( "Could not set mouse acceleration with kernel return = 0x%x.\n", kr ); -} -#endif - /* * DarwinMouseProc: Handle the initialization, etc. of a mouse */