diff options
author | Martijn Coenen <maco@google.com> | 2012-03-29 11:18:46 -0700 |
---|---|---|
committer | Martijn Coenen <maco@google.com> | 2012-03-29 11:18:46 -0700 |
commit | 0ec8bb7e59bad813e1423bff0c756fafe85b011c (patch) | |
tree | 49dcdf60cb53efee3f82b2d142c7a27440a839a6 | |
parent | b97805c6f1732a004972cc1c0b58edf91ba6b108 (diff) | |
download | packages_apps_nfc-0ec8bb7e59bad813e1423bff0c756fafe85b011c.zip packages_apps_nfc-0ec8bb7e59bad813e1423bff0c756fafe85b011c.tar.gz packages_apps_nfc-0ec8bb7e59bad813e1423bff0c756fafe85b011c.tar.bz2 |
Get rid of getLastError().
Was only used for one call into the service, and it wasn't even correct
in that case.
Change-Id: I6c7d9d137783fde9341e119402e6823776c711b7
-rw-r--r-- | src/com/android/nfc/DeviceHost.java | 2 | ||||
-rwxr-xr-x | src/com/android/nfc/NfcService.java | 5 | ||||
-rwxr-xr-x | src/com/android/nfc/nxp/NativeNfcManager.java | 4 |
3 files changed, 2 insertions, 9 deletions
diff --git a/src/com/android/nfc/DeviceHost.java b/src/com/android/nfc/DeviceHost.java index 8081f3c..82c711c 100644 --- a/src/com/android/nfc/DeviceHost.java +++ b/src/com/android/nfc/DeviceHost.java @@ -185,8 +185,6 @@ public interface DeviceHost { public void doDeselectSecureElement(); - public int doGetLastError(); - public LlcpConnectionlessSocket createLlcpConnectionlessSocket(int nSap, String sn) throws LlcpException; diff --git a/src/com/android/nfc/NfcService.java b/src/com/android/nfc/NfcService.java index 9cd5503..57165da 100755 --- a/src/com/android/nfc/NfcService.java +++ b/src/com/android/nfc/NfcService.java @@ -1053,11 +1053,6 @@ public class NfcService extends Application implements DeviceHostListener { } @Override - public int getLastError(int nativeHandle) throws RemoteException { - return(mDeviceHost.doGetLastError()); - } - - @Override public boolean ndefIsWritable(int nativeHandle) throws RemoteException { throw new UnsupportedOperationException(); } diff --git a/src/com/android/nfc/nxp/NativeNfcManager.java b/src/com/android/nfc/nxp/NativeNfcManager.java index 2573ff6..25a6b87 100755 --- a/src/com/android/nfc/nxp/NativeNfcManager.java +++ b/src/com/android/nfc/nxp/NativeNfcManager.java @@ -66,6 +66,8 @@ public class NativeNfcManager implements DeviceHost { private native boolean doDownload(); + public native int doGetLastError(); + @Override public void checkFirmware() { // Check that the NFC controller firmware is up to date. This @@ -131,8 +133,6 @@ public class NativeNfcManager implements DeviceHost { @Override public native void doDeselectSecureElement(); - @Override - public native int doGetLastError(); private native NativeLlcpConnectionlessSocket doCreateLlcpConnectionlessSocket(int nSap, String sn); |