diff options
author | 2020-08-31 23:36:39 +0000 | |
---|---|---|
committer | 2020-08-31 23:36:39 +0000 | |
commit | 6109662d0f0ae9c2d7f40ea36a04f695d59544ab (patch) | |
tree | 99bebaf806ec5ae66f992b11db1b7884f726f2c3 /libs/binder/ProcessState.cpp | |
parent | 0fd8d7970b1bc0fa318a7db65f2e10f097f593de (diff) |
libbinder: remove unused context variables
Bug: N/A
Test: N/A
Change-Id: Ifb82b44861fd1de382daeed54757330ba1cc2d59
Diffstat (limited to 'libs/binder/ProcessState.cpp')
-rw-r--r-- | libs/binder/ProcessState.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libs/binder/ProcessState.cpp b/libs/binder/ProcessState.cpp index 02e01934bb..5d42905d3e 100644 --- a/libs/binder/ProcessState.cpp +++ b/libs/binder/ProcessState.cpp @@ -144,11 +144,9 @@ void ProcessState::startThreadPool() } } -bool ProcessState::becomeContextManager(context_check_func checkFunc, void* userData) +bool ProcessState::becomeContextManager() { AutoMutex _l(mLock); - mBinderContextCheckFunc = checkFunc; - mBinderContextUserData = userData; flat_binder_object obj { .flags = FLAT_BINDER_FLAG_TXN_SECURITY_CTX, @@ -165,8 +163,6 @@ bool ProcessState::becomeContextManager(context_check_func checkFunc, void* user } if (result == -1) { - mBinderContextCheckFunc = nullptr; - mBinderContextUserData = nullptr; ALOGE("Binder ioctl to become context manager failed: %s\n", strerror(errno)); } @@ -397,8 +393,6 @@ ProcessState::ProcessState(const char *driver) , mExecutingThreadsCount(0) , mMaxThreads(DEFAULT_MAX_BINDER_THREADS) , mStarvationStartTimeMs(0) - , mBinderContextCheckFunc(nullptr) - , mBinderContextUserData(nullptr) , mThreadPoolStarted(false) , mThreadPoolSeq(1) , mCallRestriction(CallRestriction::NONE) |