diff --git a/src/ch347jtag.cpp b/src/ch347jtag.cpp index 10e15ca..1c72af2 100644 --- a/src/ch347jtag.cpp +++ b/src/ch347jtag.cpp @@ -49,11 +49,6 @@ enum CH347JtagSig { SIG_TDI = 0b10000, }; -static void LIBUSB_CALL sync_cb(struct libusb_transfer *transfer) { - int *complete = (int *)transfer->user_data; - *complete = 1; -} - // defer should only be used with rlen == 0 int CH347Jtag::usb_xfer(unsigned wlen, unsigned rlen, unsigned *ract, bool defer) @@ -429,4 +424,4 @@ int CH347Jtag::writeTDI(const uint8_t *tx, uint8_t *rx, uint32_t len, bool end) } } return EXIT_SUCCESS; -} \ No newline at end of file +}