usb-ccid: Drop unused CCIDCardInfo callback print()

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Markus Armbruster 2011-05-19 13:37:14 +02:00 committed by Anthony Liguori
parent 3836620c09
commit 1cc2428cce
2 changed files with 0 additions and 12 deletions

View File

@ -29,7 +29,6 @@ struct CCIDCardState {
*/
struct CCIDCardInfo {
DeviceInfo qdev;
void (*print)(Monitor *mon, CCIDCardState *card, int indent);
const uint8_t *(*get_atr)(CCIDCardState *card, uint32_t *len);
void (*apdu_from_guest)(CCIDCardState *card,
const uint8_t *apdu,

View File

@ -1104,20 +1104,9 @@ static Answer *ccid_peek_next_answer(USBCCIDState *s)
: &s->pending_answers[s->pending_answers_start % PENDING_ANSWERS_NUM];
}
static void ccid_bus_dev_print(Monitor *mon, DeviceState *qdev, int indent)
{
CCIDCardState *card = DO_UPCAST(CCIDCardState, qdev, qdev);
CCIDCardInfo *info = DO_UPCAST(CCIDCardInfo, qdev, qdev->info);
if (info->print) {
info->print(mon, card, indent);
}
}
static struct BusInfo ccid_bus_info = {
.name = "ccid-bus",
.size = sizeof(CCIDBus),
.print_dev = ccid_bus_dev_print,
.props = (Property[]) {
DEFINE_PROP_UINT32("slot", struct CCIDCardState, slot, 0),
DEFINE_PROP_END_OF_LIST(),