Skip to content

Commit c2dc1c4

Browse files
gkastenAndroid (Google) Code Review
authored andcommitted
Merge "Simplify removeNotificationClient"
2 parents eb70fe5 + 538529b commit c2dc1c4

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

services/audioflinger/AudioFlinger.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,12 +1029,7 @@ void AudioFlinger::removeNotificationClient(pid_t pid)
10291029
{
10301030
Mutex::Autolock _l(mLock);
10311031

1032-
ssize_t index = mNotificationClients.indexOfKey(pid);
1033-
if (index >= 0) {
1034-
sp <NotificationClient> client = mNotificationClients.valueFor(pid);
1035-
ALOGV("removeNotificationClient() %p, pid %d", client.get(), pid);
1036-
mNotificationClients.removeItem(pid);
1037-
}
1032+
mNotificationClients.removeItem(pid);
10381033

10391034
ALOGV("%d died, releasing its sessions", pid);
10401035
size_t num = mAudioSessionRefs.size();

0 commit comments

Comments
 (0)