mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-12 15:02:11 +00:00
Bug 1083651 - [NFC] Remove unused error code. r=allstars.chh
This commit is contained in:
parent
eb4c7dd69b
commit
081b3175d8
@ -8,7 +8,7 @@
|
||||
namespace mozilla {
|
||||
|
||||
#define NFCD_MAJOR_VERSION 1
|
||||
#define NFCD_MINOR_VERSION 12
|
||||
#define NFCD_MINOR_VERSION 13
|
||||
|
||||
enum NfcRequest {
|
||||
ConfigReq = 0,
|
||||
|
@ -25,36 +25,24 @@ this.DEBUG_NFC = false || DEBUG_ALL;
|
||||
// nfcd error codes
|
||||
this.NFC_SUCCESS = 0;
|
||||
this.NFC_ERROR_IO = -1;
|
||||
this.NFC_ERROR_CANCELLED = -2;
|
||||
this.NFC_ERROR_TIMEOUT = -3;
|
||||
this.NFC_ERROR_BUSY = -4;
|
||||
this.NFC_ERROR_CONNECT = -5;
|
||||
this.NFC_ERROR_DISCONNECT = -6;
|
||||
this.NFC_ERROR_READ = -7;
|
||||
this.NFC_ERROR_WRITE = -8;
|
||||
this.NFC_ERROR_INVALID_PARAM = -9;
|
||||
this.NFC_ERROR_INSUFFICIENT_RESOURCES = -10;
|
||||
this.NFC_ERROR_SOCKET_CREATION = -11;
|
||||
this.NFC_ERROR_SOCKET_NOT_CONNECTED = -12;
|
||||
this.NFC_ERROR_BUFFER_TOO_SMALL = -13;
|
||||
this.NFC_ERROR_SAP_USED = -14;
|
||||
this.NFC_ERROR_SERVICE_NAME_USED = -15;
|
||||
this.NFC_ERROR_SOCKET_OPTIONS = -16;
|
||||
this.NFC_ERROR_FAIL_ENABLE_DISCOVERY = -17;
|
||||
this.NFC_ERROR_FAIL_DISABLE_DISCOVERY = -18;
|
||||
this.NFC_ERROR_NOT_INITIALIZED = -19;
|
||||
this.NFC_ERROR_INITIALIZE_FAIL = -20;
|
||||
this.NFC_ERROR_DEINITIALIZE_FAIL = -21;
|
||||
this.NFC_ERROR_SE_CONNECTED = -22;
|
||||
this.NFC_ERROR_NO_SE_CONNECTED = -23;
|
||||
this.NFC_ERROR_NOT_SUPPORTED = -24;
|
||||
this.NFC_ERROR_BAD_SESSION_ID = -25;
|
||||
this.NFC_ERROR_LOST_TECH = -26;
|
||||
this.NFC_ERROR_BAD_TECH_TYPE = -27;
|
||||
this.NFC_ERROR_SELECT_SE_FAIL = -28;
|
||||
this.NFC_ERROR_DESELECT_SE_FAIL = -29;
|
||||
this.NFC_ERROR_FAIL_ENABLE_LOW_POWER_MODE = -30;
|
||||
this.NFC_ERROR_FAIL_DISABLE_LOW_POWER_MODE = -31;
|
||||
this.NFC_ERROR_TIMEOUT = -2;
|
||||
this.NFC_ERROR_BUSY = -3;
|
||||
this.NFC_ERROR_CONNECT = -4;
|
||||
this.NFC_ERROR_DISCONNECT = -5;
|
||||
this.NFC_ERROR_READ = -6;
|
||||
this.NFC_ERROR_WRITE = -7;
|
||||
this.NFC_ERROR_INVALID_PARAM = -8;
|
||||
this.NFC_ERROR_INSUFFICIENT_RESOURCES = -9;
|
||||
this.NFC_ERROR_SOCKET_CREATION = -10;
|
||||
this.NFC_ERROR_FAIL_ENABLE_DISCOVERY = -11;
|
||||
this.NFC_ERROR_FAIL_DISABLE_DISCOVERY = -12;
|
||||
this.NFC_ERROR_NOT_INITIALIZED = -13;
|
||||
this.NFC_ERROR_INITIALIZE_FAIL = -14;
|
||||
this.NFC_ERROR_DEINITIALIZE_FAIL = -15;
|
||||
this.NFC_ERROR_NOT_SUPPORTED = -16;
|
||||
this.NFC_ERROR_BAD_SESSION_ID = -17,
|
||||
this.NFC_ERROR_FAIL_ENABLE_LOW_POWER_MODE = -18;
|
||||
this.NFC_ERROR_FAIL_DISABLE_LOW_POWER_MODE = -19;
|
||||
|
||||
// Gecko specific error codes
|
||||
this.NFC_GECKO_ERROR_GENERIC_FAILURE = 1;
|
||||
@ -64,7 +52,6 @@ this.NFC_GECKO_ERROR_SEND_FILE_FAILED = 4;
|
||||
|
||||
this.NFC_ERROR_MSG = {};
|
||||
this.NFC_ERROR_MSG[this.NFC_ERROR_IO] = "NfcIoError";
|
||||
this.NFC_ERROR_MSG[this.NFC_ERROR_CANCELLED] = "NfcCancelledError";
|
||||
this.NFC_ERROR_MSG[this.NFC_ERROR_TIMEOUT] = "NfcTimeoutError";
|
||||
this.NFC_ERROR_MSG[this.NFC_ERROR_BUSY] = "NfcBusyError";
|
||||
this.NFC_ERROR_MSG[this.NFC_ERROR_CONNECT] = "NfcConnectError";
|
||||
@ -74,24 +61,13 @@ this.NFC_ERROR_MSG[this.NFC_ERROR_WRITE] = "NfcWriteError";
|
||||
this.NFC_ERROR_MSG[this.NFC_ERROR_INVALID_PARAM] = "NfcInvalidParamError";
|
||||
this.NFC_ERROR_MSG[this.NFC_ERROR_INSUFFICIENT_RESOURCES] = "NfcInsufficentResourcesError";
|
||||
this.NFC_ERROR_MSG[this.NFC_ERROR_SOCKET_CREATION] = "NfcSocketCreationError";
|
||||
this.NFC_ERROR_MSG[this.NFC_ERROR_SOCKET_NOT_CONNECTED] = "NfcSocketNotConntectedError";
|
||||
this.NFC_ERROR_MSG[this.NFC_ERROR_BUFFER_TOO_SMALL] = "NfcBufferTooSmallError";
|
||||
this.NFC_ERROR_MSG[this.NFC_ERROR_SAP_USED] = "NfcSapUsedError";
|
||||
this.NFC_ERROR_MSG[this.NFC_ERROR_SERVICE_NAME_USED] = "NfcServiceNameUsedError";
|
||||
this.NFC_ERROR_MSG[this.NFC_ERROR_SOCKET_OPTIONS] = "NfcSocketOptionsError";
|
||||
this.NFC_ERROR_MSG[this.NFC_ERROR_FAIL_ENABLE_DISCOVERY] = "NfcFailEnableDiscoveryError";
|
||||
this.NFC_ERROR_MSG[this.NFC_ERROR_FAIL_DISABLE_DISCOVERY] = "NfcFailDisableDiscoveryError";
|
||||
this.NFC_ERROR_MSG[this.NFC_ERROR_NOT_INITIALIZED] = "NfcNotInitializedError";
|
||||
this.NFC_ERROR_MSG[this.NFC_ERROR_INITIALIZE_FAIL] = "NfcInitializeFailError";
|
||||
this.NFC_ERROR_MSG[this.NFC_ERROR_DEINITIALIZE_FAIL] = "NfcDeinitializeFailError";
|
||||
this.NFC_ERROR_MSG[this.NFC_ERROR_SE_CONNECTED] = "NfcSeConnectedError";
|
||||
this.NFC_ERROR_MSG[this.NFC_ERROR_NO_SE_CONNECTED] = "NfcNoSeConnectedError";
|
||||
this.NFC_ERROR_MSG[this.NFC_ERROR_NOT_SUPPORTED] = "NfcNotSupportedError";
|
||||
this.NFC_ERROR_MSG[this.NFC_ERROR_BAD_SESSION_ID] = "NfcBadSessionIdError";
|
||||
this.NFC_ERROR_MSG[this.NFC_ERROR_LOST_TECH] = "NfcLostTechError";
|
||||
this.NFC_ERROR_MSG[this.NFC_ERROR_BAD_TECH_TYPE] = "NfcBadTechTypeError";
|
||||
this.NFC_ERROR_MSG[this.NFC_ERROR_SELECT_SE_FAIL] = "SelectSecureElementFailed";
|
||||
this.NFC_ERROR_MSG[this.NFC_ERROR_DESELECT_SE_FAIL] = "DeselectSecureElementFailed";
|
||||
this.NFC_ERROR_MSG[this.NFC_ERROR_FAIL_ENABLE_LOW_POWER_MODE] = "EnableLowPowerModeFail";
|
||||
this.NFC_ERROR_MSG[this.NFC_ERROR_FAIL_DISABLE_LOW_POWER_MODE] = "DisableLowPowerModeFail";
|
||||
this.NFC_ERROR_MSG[this.NFC_GECKO_ERROR_GENERIC_FAILURE] = "NfcGenericFailureError";
|
||||
|
Loading…
x
Reference in New Issue
Block a user