From 518406881bfc6e80c3db40d6af0761bb8e9b3d58 Mon Sep 17 00:00:00 2001 From: Chris Kuethe Date: Sun, 18 Apr 2010 14:05:40 -0700 Subject: dead code removal 1) if this is debug, it should be in gpsd_report 2) if this is protocol IO, it should go in a json message 3) either way, we're not using this --- isgps.c | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'isgps.c') diff --git a/isgps.c b/isgps.c index abc566a3..c29a7c36 100644 --- a/isgps.c +++ b/isgps.c @@ -318,34 +318,3 @@ enum isgpsstat_t isgps_decode(struct gps_packet_t *session, } /*@ +usereleased +compdef @*/ - -#ifdef __UNUSED__ -void isgps_output_magnavox(isgps30bits_t * ip, unsigned int len, FILE * fp) -/* ship an IS-GPS-200 message to standard output in Magnavox format */ -{ - isgps30bits_t w = 0; - - while (len-- > 0) { - w <<= 30; - w |= *ip++ & W_DATA_MASK; - - w |= isgps_parity(w); - - /* weird-assed inversion */ - if (w & P_30_MASK) - w ^= W_DATA_MASK; - - /* - * Write each 30-bit IS-GPS-200 data word as 5 Magnavox-format bytes - * with data in the low 6-bits of the byte. MSB first. - */ - /*@ -type @*/ - (void)fputc(MAG_TAG_DATA | reverse_bits[(w >> 24) & 0x3f], fp); - (void)fputc(MAG_TAG_DATA | reverse_bits[(w >> 18) & 0x3f], fp); - (void)fputc(MAG_TAG_DATA | reverse_bits[(w >> 12) & 0x3f], fp); - (void)fputc(MAG_TAG_DATA | reverse_bits[(w >> 6) & 0x3f], fp); - (void)fputc(MAG_TAG_DATA | reverse_bits[(w) & 0x3f], fp); - /*@ +type @*/ - } -} -#endif /* __UNUSED__ */ -- cgit v1.2.1