diff options
-rw-r--r-- | nci/jni/NativeNfcManager.cpp | 19 | ||||
-rwxr-xr-x | nci/src/com/android/nfc/dhimpl/NativeNfcManager.java | 2 |
2 files changed, 0 insertions, 21 deletions
diff --git a/nci/jni/NativeNfcManager.cpp b/nci/jni/NativeNfcManager.cpp index 251c3c67..5f97fb78 100644 --- a/nci/jni/NativeNfcManager.cpp +++ b/nci/jni/NativeNfcManager.cpp @@ -117,7 +117,6 @@ bool isDiscoveryStarted(); ** *****************************************************************************/ namespace android { -static jint sLastError = ERROR_BUFFER_TOO_SMALL; static SyncEvent sNfaEnableEvent; // event for NFA_Enable() static SyncEvent sNfaDisableEvent; // event for NFA_Disable() static SyncEvent sNfaEnableDisablePollingEvent; // event for @@ -1488,22 +1487,6 @@ TheEnd: /******************************************************************************* ** -** Function: nfcManager_doGetLastError -** -** Description: Get the last error code. -** e: JVM environment. -** o: Java object. -** -** Returns: Last error code. -** -*******************************************************************************/ -static jint nfcManager_doGetLastError(JNIEnv*, jobject) { - LOG(DEBUG) << StringPrintf("%s: last error=%i", __func__, sLastError); - return sLastError; -} - -/******************************************************************************* -** ** Function: nfcManager_doDeinitialize ** ** Description: Turn off NFC. @@ -2212,8 +2195,6 @@ static JNINativeMethod gMethods[] = { {"doStartStopPolling", "(Z)V", (void*)nfcManager_doStartStopPolling}, - {"doGetLastError", "()I", (void*)nfcManager_doGetLastError}, - {"disableDiscovery", "()V", (void*)nfcManager_disableDiscovery}, {"doSetTimeout", "(II)Z", (void*)nfcManager_doSetTimeout}, diff --git a/nci/src/com/android/nfc/dhimpl/NativeNfcManager.java b/nci/src/com/android/nfc/dhimpl/NativeNfcManager.java index ab2f0984..db357655 100755 --- a/nci/src/com/android/nfc/dhimpl/NativeNfcManager.java +++ b/nci/src/com/android/nfc/dhimpl/NativeNfcManager.java @@ -77,8 +77,6 @@ public class NativeNfcManager implements DeviceHost { private native boolean doDownload(); - public native int doGetLastError(); - @Override public boolean checkFirmware() { return doDownload(); |