pcsc: remove unused function pcsc_initiator_deselect_target

pcsc.c:763:12: warning: ‘pcsc_initiator_deselect_target’ defined but not used [-Wunused-function]
 static int pcsc_initiator_deselect_target(struct nfc_device *pnd)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
Ludovic Rousseau 2020-05-22 10:13:52 +02:00
parent 5294c0290f
commit 63cf0acb0b

View file

@ -760,11 +760,13 @@ static int pcsc_initiator_select_passive_target(struct nfc_device *pnd, const n
return 1; return 1;
} }
#if 0
static int pcsc_initiator_deselect_target(struct nfc_device *pnd) static int pcsc_initiator_deselect_target(struct nfc_device *pnd)
{ {
pnd->last_error = pcsc_reconnect(pnd, SCARD_SHARE_DIRECT, 0, SCARD_LEAVE_CARD); pnd->last_error = pcsc_reconnect(pnd, SCARD_SHARE_DIRECT, 0, SCARD_LEAVE_CARD);
return pnd->last_error; return pnd->last_error;
} }
#endif
static int pcsc_initiator_transceive_bytes(struct nfc_device *pnd, const uint8_t *pbtTx, const size_t szTx, uint8_t *pbtRx, const size_t szRx, int timeout) static int pcsc_initiator_transceive_bytes(struct nfc_device *pnd, const uint8_t *pbtTx, const size_t szTx, uint8_t *pbtRx, const size_t szRx, int timeout)
{ {