Skip to content

Commit

Permalink
[mms-lib] Removed MMS_CONNECTION_ERROR
Browse files Browse the repository at this point in the history
It's not being used.
  • Loading branch information
monich committed May 7, 2014
1 parent 6ed3b07 commit 66bb88a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
11 changes: 0 additions & 11 deletions mms-lib/include/mms_connection.h
Expand Up @@ -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.
Expand Down
6 changes: 0 additions & 6 deletions mms-lib/src/mms_connection.c
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion mms-lib/test/common/test_connection.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 66bb88a

Please sign in to comment.