diff options
author | Chris Kuethe <ckuethe@users.berlios.de> | 2010-04-18 14:05:40 -0700 |
---|---|---|
committer | Chris Kuethe <ckuethe@users.berlios.de> | 2010-04-18 14:05:40 -0700 |
commit | 518406881bfc6e80c3db40d6af0761bb8e9b3d58 (patch) | |
tree | 574361872b1b071f8f6969a6472d6ed01a1bb4c2 /isgps.c | |
parent | 4d7002cd3c8403772a332013b8bf669d0866018d (diff) | |
download | gpsd-518406881bfc6e80c3db40d6af0761bb8e9b3d58.tar.gz |
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
Diffstat (limited to 'isgps.c')
-rw-r--r-- | isgps.c | 31 |
1 files changed, 0 insertions, 31 deletions
@@ -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__ */ |