Remove the freefare_duplicate_tag() function.

Update issue 22
Remove the freefare_duplicate_tag() function.
This commit is contained in:
Romain Tartiere 2010-04-26 10:34:27 +00:00
parent 1f8589f2ae
commit a2263b7ea8
2 changed files with 0 additions and 27 deletions

View file

@ -130,32 +130,6 @@ freefare_get_tags (nfc_device_t *device)
return tags; return tags;
} }
/*
* Duplicate a tag
*/
MifareTag
freefare_duplicate_tag (MifareTag tag)
{
MifareTag ret;
/* Allocate memory for the MIFARE target */
switch (tag->tag_info->type) {
case CLASSIC_1K:
case CLASSIC_4K:
ret = mifare_classic_tag_new ();
break;
case ULTRALIGHT:
ret = mifare_ultralight_tag_new ();
break;
}
ret->device = tag->device;
ret->info = tag->info;
ret->active = tag->active;
ret->tag_info = tag->tag_info;
return ret;
}
/* /*
* Returns the type of the provided tag. * Returns the type of the provided tag.
*/ */

View file

@ -52,7 +52,6 @@ typedef uint8_t MifareUltralightPageNumber;
typedef unsigned char MifareUltralightPage[4]; typedef unsigned char MifareUltralightPage[4];
MifareTag *freefare_get_tags (nfc_device_t *device); MifareTag *freefare_get_tags (nfc_device_t *device);
MifareTag freefare_duplicate_tag (MifareTag tag);
enum mifare_tag_type freefare_get_tag_type (MifareTag tag); enum mifare_tag_type freefare_get_tag_type (MifareTag tag);
const char *freefare_get_tag_friendly_name (MifareTag tag); const char *freefare_get_tag_friendly_name (MifareTag tag);
char *freefare_get_tag_uid (MifareTag tag); char *freefare_get_tag_uid (MifareTag tag);