summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2010-07-25 14:35:54 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2010-07-25 14:35:54 +0000
commitfaa41e03b253c9d0e7043ce9289056dcdafb8982 (patch)
tree0d97c91ca897bdee17cb231dad161d2f3dc2df0c /driver
parent5c50edecc644ca16541edae3c203bf25417eea41 (diff)
Get rid of unused callbacks.
Diffstat (limited to 'driver')
-rw-r--r--driver/xf86-input-usbtablet/src/usbtablet.c35
1 files changed, 4 insertions, 31 deletions
diff --git a/driver/xf86-input-usbtablet/src/usbtablet.c b/driver/xf86-input-usbtablet/src/usbtablet.c
index ae28724a1..114317810 100644
--- a/driver/xf86-input-usbtablet/src/usbtablet.c
+++ b/driver/xf86-input-usbtablet/src/usbtablet.c
@@ -24,7 +24,7 @@
* SUCH DAMAGE.
*/
-/* $OpenBSD: usbtablet.c,v 1.7 2010/07/25 14:15:49 matthieu Exp $ */
+/* $OpenBSD: usbtablet.c,v 1.8 2010/07/25 14:35:53 matthieu Exp $ */
/*
* Driver for USB HID tablet devices.
@@ -117,10 +117,7 @@ static InputInfoPtr UsbTabletAllocate(InputDriverPtr, char *, int);
static InputInfoPtr UsbTabletPreInit(InputDriverPtr, IDevPtr, int);
static int UsbTabletProc(DeviceIntPtr, int);
static void UsbTabletReadInput(InputInfoPtr);
-static int UsbTabletChangeControl(InputInfoPtr, xDeviceCtl *);
-static int UsbTabletSwitchMode(ClientPtr, DeviceIntPtr, int);
static void UsbTabletClose(InputInfoPtr);
-static void UsbTabletControlProc(DeviceIntPtr, PtrCtrl *);
static int UsbTabletOpenDevice(DeviceIntPtr);
static void UsbTabletSendEvents(InputInfoPtr, int, USBTState *);
static void UsbTabletSendButtons(InputInfoPtr, int, int, int, int, int, int);
@@ -234,13 +231,7 @@ UsbTabletProc(DeviceIntPtr pUSBT, int what)
"unable to init Focus class device\n");
return !Success;
}
-
- if (InitPtrFeedbackClassDeviceStruct(pUSBT,
- UsbTabletControlProc) == FALSE) {
- xf86Msg(X_ERROR, "unable to init ptr feedback\n");
- return !Success;
- }
-
+
if (InitProximityClassDeviceStruct(pUSBT) == FALSE) {
xf86Msg(X_ERROR,
"unable to init proximity class device\n");
@@ -478,18 +469,6 @@ UsbTabletSendEvents(InputInfoPtr pInfo, int invert, USBTState *ds)
*ods = *ds;
}
-static int
-UsbTabletChangeControl(InputInfoPtr pInfo, xDeviceCtl *control)
-{
- return BadMatch;
-}
-
-static int
-UsbTabletSwitchMode(ClientPtr client, DeviceIntPtr dev, int mode)
-{
- return BadMatch;
-}
-
static void
UsbTabletClose(InputInfoPtr pInfo)
{
@@ -509,12 +488,6 @@ UsbTabletClose(InputInfoPtr pInfo)
pInfo->fd = -1;
}
-static void
-UsbTabletControlProc(DeviceIntPtr device, PtrCtrl *ctrl)
-{
- DBG(2, ErrorF("UsbTabletControlProc\n"));
-}
-
static Bool
UsbTabletOpen(InputInfoPtr pInfo)
{
@@ -750,8 +723,8 @@ UsbTabletAllocate(InputDriverPtr drv, char *name, int flag)
pInfo->name = name;
pInfo->device_control = UsbTabletProc;
pInfo->read_input = UsbTabletReadInput;
- pInfo->control_proc = UsbTabletChangeControl;
- pInfo->switch_mode = UsbTabletSwitchMode;
+ pInfo->control_proc = NULL;
+ pInfo->switch_mode = NULL;
pInfo->conversion_proc = NULL;
pInfo->reverse_conversion_proc = NULL;
pInfo->fd = -1;