Remove the freefare_duplicate_tag() function.
Update issue 22 Remove the freefare_duplicate_tag() function.
This commit is contained in:
parent
1f8589f2ae
commit
a2263b7ea8
2 changed files with 0 additions and 27 deletions
|
@ -130,32 +130,6 @@ freefare_get_tags (nfc_device_t *device)
|
|||
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.
|
||||
*/
|
||||
|
|
|
@ -52,7 +52,6 @@ typedef uint8_t MifareUltralightPageNumber;
|
|||
typedef unsigned char MifareUltralightPage[4];
|
||||
|
||||
MifareTag *freefare_get_tags (nfc_device_t *device);
|
||||
MifareTag freefare_duplicate_tag (MifareTag tag);
|
||||
enum mifare_tag_type freefare_get_tag_type (MifareTag tag);
|
||||
const char *freefare_get_tag_friendly_name (MifareTag tag);
|
||||
char *freefare_get_tag_uid (MifareTag tag);
|
||||
|
|
Loading…
Add table
Reference in a new issue