port: no need for custom enum to string converters

This commit is contained in:
Aleksander Morgado
2012-02-13 12:13:55 +01:00
parent 46a665630d
commit 20d8fd92bf
2 changed files with 0 additions and 36 deletions

View File

@@ -46,38 +46,6 @@ typedef struct {
/*****************************************************************************/ /*****************************************************************************/
const char *
mm_port_subsys_to_name (MMPortSubsys psubsys)
{
switch (psubsys) {
case MM_PORT_SUBSYS_TTY:
return "tty";
case MM_PORT_SUBSYS_NET:
return "net";
default:
break;
}
return "(unknown)";
}
const char *
mm_port_type_to_name (MMPortType ptype)
{
switch (ptype) {
case MM_PORT_TYPE_AT:
return "AT";
case MM_PORT_TYPE_IGNORED:
return "ignored";
case MM_PORT_TYPE_QCDM:
return "QCDM";
default:
break;
}
return "(unknown)";
}
/*****************************************************************************/
static GObject* static GObject*
constructor (GType type, constructor (GType type,
guint n_construct_params, guint n_construct_params,

View File

@@ -74,8 +74,4 @@ gboolean mm_port_get_connected (MMPort *self);
void mm_port_set_connected (MMPort *self, gboolean connected); void mm_port_set_connected (MMPort *self, gboolean connected);
const char * mm_port_type_to_name (MMPortType ptype);
const char * mm_port_subsys_to_name (MMPortSubsys psubsys);
#endif /* MM_PORT_H */ #endif /* MM_PORT_H */