diff options
| author | Sharvil Nanavati <sharvil@google.com> | 2014-05-03 15:33:15 -0700 |
|---|---|---|
| committer | Sharvil Nanavati <sharvil@google.com> | 2014-05-08 03:37:31 +0000 |
| commit | 740def526e757f5ea8f30d9d28d1e7a668dadc42 (patch) | |
| tree | 3c3851db713757337d4b07f9428c04feaecfc74d /udrv | |
| parent | 10266fdad65bb8e378d2fa49de8e1368a91d7270 (diff) | |
| download | android_system_bt-740def526e757f5ea8f30d9d28d1e7a668dadc42.tar.gz android_system_bt-740def526e757f5ea8f30d9d28d1e7a668dadc42.tar.bz2 android_system_bt-740def526e757f5ea8f30d9d28d1e7a668dadc42.zip | |
Eliminate dead code (helped by compiler warnings).
I've removed all functions that the compiler decided were unused.
Change-Id: I0cbddf874ebd1586abe29b80e8d6390680679542
Diffstat (limited to 'udrv')
| -rw-r--r-- | udrv/ulinux/uipc.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/udrv/ulinux/uipc.c b/udrv/ulinux/uipc.c index 3f8fd9b9f..158a053a8 100644 --- a/udrv/ulinux/uipc.c +++ b/udrv/ulinux/uipc.c @@ -140,49 +140,6 @@ const char* dump_uipc_event(tUIPC_EVENT event) } /***************************************************************************** -** -** Function -** -** Description -** -** Returns -** -*******************************************************************************/ - -static void uipc_wait(tUIPC_CH_ID ch_id, tUIPC_EVENT wait_event_flags) -{ - int ret; - tUIPC_CHAN *p = &uipc_main.ch[ch_id]; - - //BTIF_TRACE_EVENT2("WAIT UIPC CH %d EVT %x BEGIN", ch_id, wait_event_flags); - pthread_mutex_lock(&p->cond_mutex); - p->cond_flags |= wait_event_flags; - ret = pthread_cond_wait(&p->cond, &p->cond_mutex); - pthread_mutex_unlock(&p->cond_mutex); - //BTIF_TRACE_EVENT2("WAIT UIPC CH %d EVT %x DONE", ch_id, wait_event_flags); -} - -static void uipc_signal(tUIPC_CH_ID ch_id, tUIPC_EVENT event) -{ - int ret; - tUIPC_CHAN *p = &uipc_main.ch[ch_id]; - - //BTIF_TRACE_EVENT2("SIGNAL UIPC CH %d EVT %x BEGIN", ch_id, dump_uipc_event(event)); - pthread_mutex_lock(&p->cond_mutex); - - if (event & p->cond_flags) - { - //BTIF_TRACE_EVENT0("UNBLOCK"); - ret = pthread_cond_signal(&p->cond); - p->cond_flags = 0; - } - - pthread_mutex_unlock(&p->cond_mutex); -} - - - -/***************************************************************************** ** socket helper functions *****************************************************************************/ |
