]> sigrok.org Git - libsigrok.git/blobdiff - output/gnuplot.c
sr: code cleanup
[libsigrok.git] / output / gnuplot.c
index ecbc027b05a38194e08d54d426bda5a6e76db10e..c150a2fb4eba514223ce24343807ec032df4bc83 100644 (file)
@@ -148,8 +148,6 @@ static int init(struct sr_output *o)
 static int event(struct sr_output *o, int event_type, char **data_out,
                 uint64_t *length_out)
 {
-       struct context *ctx;
-
        if (!o) {
                sr_err("gnuplot out: %s: o was NULL", __func__);
                return SR_ERR_ARG;
@@ -165,8 +163,6 @@ static int event(struct sr_output *o, int event_type, char **data_out,
                return SR_ERR_ARG;
        }
 
-       ctx = o->internal;
-
        switch (event_type) {
        case SR_DF_TRIGGER:
                /* TODO: Can a trigger mark be in a gnuplot data file? */