From: Martin Ling Date: Fri, 26 Apr 2013 20:22:36 +0000 (+0100) Subject: bits: Remove unused code. X-Git-Tag: dsupstream~52 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=ddb292571d03ee2e13100d749edcf0dceed5d9a2;p=libsigrok.git bits: Remove unused code. --- diff --git a/output/text/bits.c b/output/text/bits.c index 3b75e5f3..0ba9682b 100644 --- a/output/text/bits.c +++ b/output/text/bits.c @@ -70,10 +70,6 @@ SR_PRIV int data_bits(struct sr_output *o, const uint8_t *data_in, strncpy((char *)outbuf, ctx->header, outsize); g_free(ctx->header); ctx->header = NULL; - - /* Ensure first transition. */ - memcpy(&ctx->prevsample, data_in, ctx->unitsize); - ctx->prevsample = ~ctx->prevsample; } if (length_in >= ctx->unitsize) {