Skip to content

Commit de60b2a

Browse files
remove unused converter
1 parent 03b747a commit de60b2a

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

features/FEATURE_BLE/targets/TARGET_CORDIO/CordioPalAttClient.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ void CordioAttClient::att_client_handler(const attEvt_t* event)
3535
static const event_handler_t handlers[] = {
3636
&timeout_event_handler,
3737
&event_handler<ErrorResponseConverter>,
38-
//&event_handler<ExchangeMtuResponseConverter>,
3938
&event_handler<FindInformationResponseConverter>,
4039
&event_handler<FindByTypeValueResponseConverter>,
4140
&event_handler<ReadByTypeResponseConverter>,

features/FEATURE_BLE/targets/TARGET_CORDIO/CordioPalAttClient.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -400,25 +400,6 @@ class CordioAttClient : public ::ble::pal::AttClient {
400400
}
401401
};
402402

403-
/**
404-
* Converter for an AttExchangeMTUResponse.
405-
*/
406-
struct ExchangeMtuResponseConverter {
407-
static bool can_convert(const attEvt_t* event)
408-
{
409-
if(event->hdr.status == ATT_SUCCESS &&
410-
event->hdr.event == ATT_MTU_UPDATE_IND) {
411-
return true;
412-
}
413-
return false;
414-
}
415-
416-
static AttExchangeMTUResponse convert(const attEvt_t* event)
417-
{
418-
return AttExchangeMTUResponse(event->mtu);
419-
}
420-
};
421-
422403
/**
423404
* Converter for a SimpleAttFindInformationResponse.
424405
*/

0 commit comments

Comments
 (0)