From 0ec066db26bdc4ed9b3ea97a29b4193bff8776d4 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 27 Jun 2011 06:14:35 -0400 Subject: Remove unused code. --- gpsdctl.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'gpsdctl.c') diff --git a/gpsdctl.c b/gpsdctl.c index 9cc48b09..b34b31a4 100644 --- a/gpsdctl.c +++ b/gpsdctl.c @@ -59,7 +59,7 @@ static int gpsd_control(char *action, char *argument) * The only other place in the code that knows about the format of * the add and remove commands is the handle_control() function in * gpsd.c. Be careful about keeping them in sync, or hotplugging - * will have nysterious failures. + * will have mysterious failures. */ if (strcmp(action, "add") == 0) { /* @@ -77,10 +77,6 @@ static int gpsd_control(char *action, char *argument) (void)snprintf(buf, sizeof(buf), "-%s\r\n", argument); (void)write(connect, buf, strlen(buf)); (void)read(connect, buf, 12); - } else if (strcmp(action, "send") == 0) { - (void)snprintf(buf, sizeof(buf), "%s\r\n", argument); - (void)write(connect, buf, strlen(buf)); - (void)read(connect, buf, 12); } (void)close(connect); //syslog(LOG_DEBUG, "gpsd_control ends"); -- cgit v1.2.1