diff options
author | 2024-02-16 22:29:42 +0000 | |
---|---|---|
committer | 2024-02-16 22:30:22 +0000 | |
commit | 1bf4291b13d726b90a5517ae1851adb06f52f7a2 (patch) | |
tree | 4364e8edee8918704ec01a7de2cf3f7366023dd2 | |
parent | 315a0f14a6cbfbb14036ddf9a38677e30e48656f (diff) |
libbinder: remove dead attempt inc code
Not used, came up over email recently.
Bug: N/A
Test: N/A
Change-Id: Ibde57ce5607587254a3d9262ac429488f3a5d263
-rw-r--r-- | libs/binder/IPCThreadState.cpp | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp index b92e504a9a..ef96f803c3 100644 --- a/libs/binder/IPCThreadState.cpp +++ b/libs/binder/IPCThreadState.cpp @@ -922,28 +922,10 @@ void IPCThreadState::decWeakHandle(int32_t handle) flushIfNeeded(); } -status_t IPCThreadState::attemptIncStrongHandle(int32_t handle) -{ -#if HAS_BC_ATTEMPT_ACQUIRE - LOG_REMOTEREFS("IPCThreadState::attemptIncStrongHandle(%d)\n", handle); - mOut.writeInt32(BC_ATTEMPT_ACQUIRE); - mOut.writeInt32(0); // xxx was thread priority - mOut.writeInt32(handle); - status_t result = UNKNOWN_ERROR; - - waitForResponse(NULL, &result); - -#if LOG_REFCOUNTS - ALOGV("IPCThreadState::attemptIncStrongHandle(%ld) = %s\n", - handle, result == NO_ERROR ? "SUCCESS" : "FAILURE"); -#endif - - return result; -#else +status_t IPCThreadState::attemptIncStrongHandle(int32_t handle) { (void)handle; ALOGE("%s(%d): Not supported\n", __func__, handle); return INVALID_OPERATION; -#endif } void IPCThreadState::expungeHandle(int32_t handle, IBinder* binder) |