From 7a6368d26192e81529bc0d39c9c343a822ff175f Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 4 Aug 2008 21:41:36 +0200 Subject: Move error_connection_attempt_failed to its usage places --- common/error.c | 13 ------------- common/error.h | 4 ---- 2 files changed, 17 deletions(-) (limited to 'common') diff --git a/common/error.c b/common/error.c index d6f321bd..825cde4f 100644 --- a/common/error.c +++ b/common/error.c @@ -35,19 +35,6 @@ #include "error.h" -/** - org.bluez.Error.ConnectionAttemptFailed: - - An unexpected error (other than DeviceUnreachable) error has occured while - attempting a connection to a device -*/ -DBusHandlerResult error_connection_attempt_failed(DBusConnection *conn, DBusMessage *msg, int err) -{ - return error_common_reply(conn, msg, - ERROR_INTERFACE ".ConnectionAttemptFailed", - err > 0 ? strerror(err) : "Connection attempt failed"); -} - /* Helper function - internal use only */ DBusHandlerResult error_common_reply(DBusConnection *conn, DBusMessage *msg, const char *name, const char *descr) diff --git a/common/error.h b/common/error.h index 63ce2069..644e385f 100644 --- a/common/error.h +++ b/common/error.h @@ -27,9 +27,5 @@ #define ERROR_INTERFACE "org.bluez.Error" -DBusHandlerResult error_connection_attempt_failed(DBusConnection *conn, - DBusMessage *msg, - int err); - DBusHandlerResult error_common_reply(DBusConnection *conn, DBusMessage *msg, const char *name, const char *descr); -- cgit