summaryrefslogtreecommitdiffstats
path: root/serial/port.c
diff options
context:
space:
mode:
Diffstat (limited to 'serial/port.c')
-rw-r--r--serial/port.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/serial/port.c b/serial/port.c
index 44879ecc..3866076a 100644
--- a/serial/port.c
+++ b/serial/port.c
@@ -316,23 +316,6 @@ int port_unregister(const char *path)
return 0;
}
-const char *port_get_owner(DBusConnection *conn, int16_t id)
-{
- struct rfcomm_node *node;
- static char path[MAX_PATH_LENGTH];
-
- snprintf(path, MAX_PATH_LENGTH, "%s/rfcomm%d", SERIAL_MANAGER_PATH, id);
-
- /* FIXME: Ports related to services connection doesn't have a path/object */
- if (!dbus_connection_get_object_user_data(conn, path, (void *) &node)
- || !node) {
- errno = ENOENT;
- return NULL;
- }
-
- return node->owner;
-}
-
static gboolean open_continue(struct open_context *oc)
{
int fd;