summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
Diffstat (limited to 'input')
-rw-r--r--input/input-api.txt4
-rw-r--r--input/input-service.c15
2 files changed, 0 insertions, 19 deletions
diff --git a/input/input-api.txt b/input/input-api.txt
index d947d489..42ce2755 100644
--- a/input/input-api.txt
+++ b/input/input-api.txt
@@ -70,10 +70,6 @@ Methods string GetAddress()
Disconnect from the input device.
- void Unplug()
-
- Unplug the virtual cable device.
-
void SetTimeout(uint32 timeout)
Set the idle timeout.
diff --git a/input/input-service.c b/input/input-service.c
index def6248d..1c3bb604 100644
--- a/input/input-service.c
+++ b/input/input-service.c
@@ -761,18 +761,6 @@ static DBusHandlerResult device_disconnect(DBusConnection *conn,
dbus_message_new_method_return(msg));
}
-static DBusHandlerResult device_unplug(DBusConnection *conn,
- DBusMessage *msg, void *data)
-{
- struct input_device *idev = data;
-
- if (disconnect(idev, (1 << HIDP_VIRTUAL_CABLE_UNPLUG)) < 0)
- return err_failed(conn, msg, strerror(errno));
-
- return send_message_and_unref(conn,
- dbus_message_new_method_return(msg));
-}
-
static DBusHandlerResult device_is_connected(DBusConnection *conn,
DBusMessage *msg, void *data)
{
@@ -851,9 +839,6 @@ static DBusHandlerResult device_message(DBusConnection *conn,
if (strcmp(member, "Disconnect") == 0)
return device_disconnect(conn, msg, data);
- if (strcmp(member, "Unplug") == 0)
- return device_unplug(conn, msg, data);
-
if (strcmp(member, "IsConnected") == 0)
return device_is_connected(conn, msg, data);