summaryrefslogtreecommitdiff
path: root/driver_tsip.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-10-15 06:13:34 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-10-15 06:13:34 -0400
commit6dfaf149f774bdb165d0c903be2246cd75806d42 (patch)
tree59425192ce0ee2b1221a63afd5fb9f4ea0992c71 /driver_tsip.c
parent89363f6ebcfb9810f38303571865208eac8b4b5c (diff)
downloadgpsd-6dfaf149f774bdb165d0c903be2246cd75806d42.tar.gz
More elimination of code rendered dead by packet-type dispatching.
All regression tests pass.
Diffstat (limited to 'driver_tsip.c')
-rw-r--r--driver_tsip.c28
1 files changed, 1 insertions, 27 deletions
diff --git a/driver_tsip.c b/driver_tsip.c
index c56a8054..75863f2c 100644
--- a/driver_tsip.c
+++ b/driver_tsip.c
@@ -119,7 +119,7 @@ static bool tsip_detect(struct gps_device_t *session)
return ret;
}
-static gps_mask_t tsip_analyze(struct gps_device_t *session)
+static gps_mask_t tsip_parse_input(struct gps_device_t *session)
{
int i, j, len, count;
gps_mask_t mask = 0;
@@ -1009,32 +1009,6 @@ static gps_mask_t tsip_analyze(struct gps_device_t *session)
return mask;
}
-static gps_mask_t tsip_parse_input(struct gps_device_t *session)
-{
- if (session->packet.type == TSIP_PACKET) {
- return tsip_analyze(session);
-#ifdef __UNUSED__
- } else if (session->packet.type == EVERMORE_PACKET) {
- (void)gpsd_switch_driver(session, "EverMore binary");
- return evermore_parse(session, session->packet.outbuffer,
- session->packet.outbuflen);
-#endif /* __UNUSED__ */
-#ifdef SIRF_ENABLE
- /*
- * mrd reported that once every couple of weeks his SiRF was flipping
- * into Trimble binary mode and not recovering. Damn Trimble for not
- * checksumming their packets, it makes false positives hard to reject.
- * This should enable the SiRF to recover.
- */
- } else if (session->packet.type == SIRF_PACKET) {
- (void)gpsd_switch_driver(session, "SiRF binary");
- return sirf_parse(session, session->packet.outbuffer,
- session->packet.outbuflen);
-#endif /* SIRF_ENABLE */
- } else
- return 0;
-}
-
#ifdef CONTROLSEND_ENABLE
static ssize_t tsip_control_send(struct gps_device_t *session,
char *buf, size_t buflen)