Removing logically dead code

This commit is contained in:
William King 2013-05-24 19:59:20 -07:00
parent 4edf66be98
commit 6c3062a768
1 changed files with 1 additions and 5 deletions

View File

@ -1219,11 +1219,7 @@ switch_status_t rtmp_session_logout(rtmp_session_t *rsession, const char *user,
switch_thread_rwlock_wrlock(rsession->account_rwlock);
for (account = rsession->account; account; account = account->next) {
if (!strcmp(account->user, user) && !strcmp(account->domain, domain)) {
if (prev) {
prev->next = account->next;
} else {
rsession->account = account->next;
}
rsession->account = account->next;
}
}
switch_thread_rwlock_unlock(rsession->account_rwlock);