summaryrefslogtreecommitdiffstats
path: root/backend_shinkos2145.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend_shinkos2145.c')
-rw-r--r--backend_shinkos2145.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/backend_shinkos2145.c b/backend_shinkos2145.c
index 3136237..ee7f6b6 100644
--- a/backend_shinkos2145.c
+++ b/backend_shinkos2145.c
@@ -97,7 +97,6 @@ struct shinkos2145_ctx {
struct libusb_device_handle *dev;
uint8_t endp_up;
uint8_t endp_down;
- int type;
uint8_t jobid;
@@ -1400,19 +1399,11 @@ static void shinkos2145_attach(void *vctx, struct libusb_device_handle *dev,
uint8_t endp_up, uint8_t endp_down, uint8_t jobid)
{
struct shinkos2145_ctx *ctx = vctx;
- struct libusb_device *device;
- struct libusb_device_descriptor desc;
ctx->dev = dev;
ctx->endp_up = endp_up;
ctx->endp_down = endp_down;
- device = libusb_get_device(dev);
- libusb_get_device_descriptor(device, &desc);
-
- ctx->type = lookup_printer_type(&shinkos2145_backend,
- desc.idVendor, desc.idProduct);
-
/* Ensure jobid is sane */
ctx->jobid = (jobid & 0x7f);
if (!ctx->jobid)