Bug 1073421 - B2G NFC: remove NDEF_Formatable and NDEF_Writable. r=smaug, dimi

This commit is contained in:
Yoshi Huang 2014-10-15 15:47:42 +08:00
parent 6ccb7125cf
commit a829a03949
3 changed files with 1 additions and 19 deletions

View File

@ -8,7 +8,7 @@
namespace mozilla {
#define NFCD_MAJOR_VERSION 1
#define NFCD_MINOR_VERSION 11
#define NFCD_MINOR_VERSION 12
enum NfcRequest {
ConfigReq = 0,

View File

@ -31,20 +31,6 @@ function MozNFCTag() {
this._nfcContentHelper = Cc["@mozilla.org/nfc/content-helper;1"]
.getService(Ci.nsINfcContentHelper);
this.session = null;
// Map WebIDL declared enum map names to integer
this._techTypesMap = [];
this._techTypesMap['NFC_A'] = 0;
this._techTypesMap['NFC_B'] = 1;
this._techTypesMap['NFC_ISO_DEP'] = 2;
this._techTypesMap['NFC_F'] = 3;
this._techTypesMap['NFC_V'] = 4;
this._techTypesMap['NDEF'] = 5;
this._techTypesMap['NDEF_FORMATABLE'] = 6;
this._techTypesMap['MIFARE_CLASSIC'] = 7;
this._techTypesMap['MIFARE_ULTRALIGHT'] = 8;
this._techTypesMap['NFC_BARCODE'] = 9;
this._techTypesMap['P2P'] = 10;
}
MozNFCTag.prototype = {
_nfcContentHelper: null,
@ -55,8 +41,6 @@ MozNFCTag.prototype = {
this.session = aSessionToken;
},
_techTypesMap: null,
// NFCTag interface:
readNDEF: function readNDEF() {
return this._nfcContentHelper.readNDEF(this._window, this.session);

View File

@ -10,8 +10,6 @@
enum NFCTechType {
"NDEF",
"NDEF_WRITABLE",
"NDEF_FORMATABLE",
"P2P",
"NFC_A",
"NFC_B",