[PATCH mouse 02/23] Remove unused declaration of MouseUnInit.

Peter Hutterer peter.hutterer at who-t.net
Sun Oct 24 23:25:10 PDT 2010


To not have an UnInit function one needs to explicitly not define an UnInit
function that is then not used, so that definitely no UnInit is performed
with the function that is not defined. Philosophically speaking, this may be
true. Meanwhile, over here in reality, well... meh.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 src/mouse.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/src/mouse.c b/src/mouse.c
index c7f28c7..8a0695f 100644
--- a/src/mouse.c
+++ b/src/mouse.c
@@ -120,9 +120,6 @@ typedef struct _DragLockRec {
 
 
 static InputInfoPtr MousePreInit(InputDriverPtr drv, IDevPtr dev, int flags);
-#if 0
-static void MouseUnInit(InputDriverPtr drv, InputInfoPtr pInfo, int flags);
-#endif
 
 static int MouseProc(DeviceIntPtr device, int what);
 static Bool MouseConvert(LocalDevicePtr local, int first, int num, int v0,
@@ -161,7 +158,7 @@ _X_EXPORT InputDriverRec MOUSE = {
 	"mouse",
 	NULL,
 	MousePreInit,
-	/*MouseUnInit,*/NULL,
+	NULL,
 	NULL,
 	0
 };
-- 
1.7.2.3



More information about the xorg-devel mailing list