]> sigrok.org Git - libsigrok.git/commitdiff
bits: Remove unused code.
authorMartin Ling <redacted>
Fri, 26 Apr 2013 20:22:36 +0000 (21:22 +0100)
committerBert Vermeulen <redacted>
Fri, 26 Apr 2013 20:56:16 +0000 (22:56 +0200)
output/text/bits.c

index 3b75e5f370aa02243009e032152f97ac34438cf4..0ba9682b110de2c8676aefe84af480ca24b7f7a4 100644 (file)
@@ -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) {