Commit 66bb88aa authored by Slava Monich's avatar Slava Monich

[mms-lib] Removed MMS_CONNECTION_ERROR

It's not being used.
parent 6ed3b070
......@@ -17,17 +17,6 @@
#include "mms_lib_types.h"
/* Connection errors */
#define G_MMS_CONNECTION_ERROR mms_connection_error_quark()
GQuark mms_connection__error_quark(void);
typedef enum _MMS_CONNECTION_ERROR {
MMS_CONNECTION_ERROR_NOT_FOUND, /* Requested SIM not found */
MMS_CONNECTION_ERROR_NOT_ALLOWED, /* Data transfer disabled */
MMS_CONNECTION_ERROR_FAILED, /* Connection failed */
MMS_CONNECTION_ERROR_INTERRUPTED /* Interrupted by something */
} MMS_CONNECTION_ERROR;
/* Connection state. There are only two state change sequences allowed:
* OPENING -> FAILED and OPENING -> OPEN -> CLOSE. Once connection fails
* to open or gets closed, it will remain on FAILED or CLOSED state forever.
......
......@@ -24,12 +24,6 @@ G_DEFINE_TYPE(MMSConnection, mms_connection, G_TYPE_OBJECT);
#define MMS_CONNECTION(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj), MMS_TYPE_CONNECTION, MMSConnection))
GQuark
mms_connection_error_quark()
{
return g_quark_from_static_string("mms-connection-error-quark");
}
MMSConnection*
mms_connection_ref(
MMSConnection* conn)
......
......@@ -50,7 +50,7 @@ test_connection_test_open(
{
MMSConnectionTest* test = param;
mms_connection_test_set_state(test, test->netif ?
MMS_CONNECTION_STATE_OPEN : MMS_CONNECTION_ERROR_FAILED);
MMS_CONNECTION_STATE_OPEN : MMS_CONNECTION_STATE_FAILED);
mms_connection_unref(test);
return FALSE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment