mirror of https://github.com/ARMmbed/mbed-os.git
remove unused converter
parent
03b747a6f6
commit
de60b2a56a
|
@ -35,7 +35,6 @@ void CordioAttClient::att_client_handler(const attEvt_t* event)
|
|||
static const event_handler_t handlers[] = {
|
||||
&timeout_event_handler,
|
||||
&event_handler<ErrorResponseConverter>,
|
||||
//&event_handler<ExchangeMtuResponseConverter>,
|
||||
&event_handler<FindInformationResponseConverter>,
|
||||
&event_handler<FindByTypeValueResponseConverter>,
|
||||
&event_handler<ReadByTypeResponseConverter>,
|
||||
|
|
|
@ -400,25 +400,6 @@ private:
|
|||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Converter for an AttExchangeMTUResponse.
|
||||
*/
|
||||
struct ExchangeMtuResponseConverter {
|
||||
static bool can_convert(const attEvt_t* event)
|
||||
{
|
||||
if(event->hdr.status == ATT_SUCCESS &&
|
||||
event->hdr.event == ATT_MTU_UPDATE_IND) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
static AttExchangeMTUResponse convert(const attEvt_t* event)
|
||||
{
|
||||
return AttExchangeMTUResponse(event->mtu);
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Converter for a SimpleAttFindInformationResponse.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue