summaryrefslogtreecommitdiffstats
path: root/backend_shinkos2145.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2019-05-22 20:42:12 -0400
committerSolomon Peachy <pizza@shaftnet.org>2019-05-22 20:42:12 -0400
commitb8520aa3021b89d751fbebd184d700b4c9c78173 (patch)
treefa20bb924a832c09a65aac68df8053580139c1a9 /backend_shinkos2145.c
parent891fc9cb5d3cd37f8b456245f702d550bbc2b9d9 (diff)
downloadselphy_print-b8520aa3021b89d751fbebd184d700b4c9c78173.tar.gz
selphy_print-b8520aa3021b89d751fbebd184d700b4c9c78173.tar.bz2
selphy_print-b8520aa3021b89d751fbebd184d700b4c9c78173.zip
common: Use generic teardown code unless necessary.
Diffstat (limited to 'backend_shinkos2145.c')
-rw-r--r--backend_shinkos2145.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/backend_shinkos2145.c b/backend_shinkos2145.c
index e197a6e..984ac35 100644
--- a/backend_shinkos2145.c
+++ b/backend_shinkos2145.c
@@ -1059,15 +1059,6 @@ static int shinkos2145_attach(void *vctx, struct libusb_device_handle *dev, int
return CUPS_BACKEND_OK;
}
-static void shinkos2145_teardown(void *vctx) {
- struct shinkos2145_ctx *ctx = vctx;
-
- if (!ctx)
- return;
-
- free(ctx);
-}
-
static int shinkos2145_read_parse(void *vctx, const void **vjob, int data_fd, int copies) {
struct shinkos2145_ctx *ctx = vctx;
struct sinfonia_printjob *job = NULL;
@@ -1350,7 +1341,6 @@ struct dyesub_backend shinkos2145_backend = {
.cmdline_arg = shinkos2145_cmdline_arg,
.init = shinkos2145_init,
.attach = shinkos2145_attach,
- .teardown = shinkos2145_teardown,
.cleanup_job = sinfonia_cleanup_job,
.read_parse = shinkos2145_read_parse,
.main_loop = shinkos2145_main_loop,