aboutsummaryrefslogtreecommitdiff
path: root/src/mm-port-serial-at.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mm-port-serial-at.c')
-rw-r--r--src/mm-port-serial-at.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/mm-port-serial-at.c b/src/mm-port-serial-at.c
index a53c5745..511503a9 100644
--- a/src/mm-port-serial-at.c
+++ b/src/mm-port-serial-at.c
@@ -54,32 +54,6 @@ struct _MMPortSerialAtPrivate {
/*****************************************************************************/
-gchar *
-mm_port_serial_at_quote_string (const char *string)
-{
- int len, i;
- gchar *quoted, *pos;
-
- if (string == NULL)
- len = 0;
- else
- len = strlen (string);
- quoted = g_malloc (3 + 3 * len); /* worst case */
-
- pos = quoted;
- *pos++ = '"';
- for (i = 0 ; i < len; i++) {
- if (string[i] < 0x20 || string[i] == '"' || string[i] == '\\')
- pos += sprintf (pos, "\\%02X", string[i]);
- else
- *pos++ = string[i];
- }
- *pos++ = '"';
- *pos++ = '\0';
-
- return quoted;
-}
-
void
mm_port_serial_at_set_response_parser (MMPortSerialAt *self,
MMPortSerialAtResponseParserFn fn,