[PATCH] xfree86: remove obsolete code

Simon Thum simon.thum at gmx.de
Wed Feb 25 01:55:36 PST 2009


remove a few lines which redo part of the pointer acceleration
init. Properties is the way to go for them.
---
 hw/xfree86/common/xf86Xinput.c |   18 ------------------
 1 files changed, 0 insertions(+), 18 deletions(-)

diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c
index 59b616c..da4f682 100644
--- a/hw/xfree86/common/xf86Xinput.c
+++ b/hw/xfree86/common/xf86Xinput.c
@@ -209,24 +209,6 @@ ProcessVelocityConfiguration(DeviceIntPtr pDev, char* devname, pointer list,
                                          s->average_accel);
 
     s->reset_time = xf86SetIntOption(list, "VelocityReset", s->reset_time);
-
-    tempf = xf86SetRealOption(list, "ExpectedRate", 0);
-    if(tempf > 0){
-        s->corr_mul = 1000.0 / tempf;
-    }else{
-        s->corr_mul = xf86SetRealOption(list, "VelocityScale", s->corr_mul);
-    }
-
-    /* select profile by number */
-    tempi= xf86SetIntOption(list, "AccelerationProfile",
-                            s->statistics.profile_number);
-
-    if(SetAccelerationProfile(s, tempi)){
-        xf86Msg(X_CONFIG, "%s: (accel) set acceleration profile %i\n", devname, tempi);
-    }else{
-        xf86Msg(X_CONFIG, "%s: (accel) acceleration profile %i is unknown\n",
-                devname, tempi);
-    }
 }
 
 static void
-- 
1.6.0.6


--------------080907050908080008060602
Content-Type: text/x-patch;
 name="0002-dix-use-correct-type-for-timestamps.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="0002-dix-use-correct-type-for-timestamps.patch"



More information about the xorg-devel mailing list