Skip to content

Commit 1bf4291

Browse files
author
Steven Moreland
committed
libbinder: remove dead attempt inc code
Not used, came up over email recently. Bug: N/A Test: N/A Change-Id: Ibde57ce5607587254a3d9262ac429488f3a5d263
1 parent 315a0f1 commit 1bf4291

1 file changed

Lines changed: 1 addition & 19 deletions

File tree

libs/binder/IPCThreadState.cpp

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -922,28 +922,10 @@ void IPCThreadState::decWeakHandle(int32_t handle)
922922
flushIfNeeded();
923923
}
924924

925-
status_t IPCThreadState::attemptIncStrongHandle(int32_t handle)
926-
{
927-
#if HAS_BC_ATTEMPT_ACQUIRE
928-
LOG_REMOTEREFS("IPCThreadState::attemptIncStrongHandle(%d)\n", handle);
929-
mOut.writeInt32(BC_ATTEMPT_ACQUIRE);
930-
mOut.writeInt32(0); // xxx was thread priority
931-
mOut.writeInt32(handle);
932-
status_t result = UNKNOWN_ERROR;
933-
934-
waitForResponse(NULL, &result);
935-
936-
#if LOG_REFCOUNTS
937-
ALOGV("IPCThreadState::attemptIncStrongHandle(%ld) = %s\n",
938-
handle, result == NO_ERROR ? "SUCCESS" : "FAILURE");
939-
#endif
940-
941-
return result;
942-
#else
925+
status_t IPCThreadState::attemptIncStrongHandle(int32_t handle) {
943926
(void)handle;
944927
ALOGE("%s(%d): Not supported\n", __func__, handle);
945928
return INVALID_OPERATION;
946-
#endif
947929
}
948930

949931
void IPCThreadState::expungeHandle(int32_t handle, IBinder* binder)

0 commit comments

Comments
 (0)