From 6dc2e752f44e0588ce4428f28b2649cd2ae92bee Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Thu, 7 Mar 2024 06:57:27 +0100 Subject: [PATCH] ch347jtag: drop unused sync_cb --- src/ch347jtag.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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 +}