diff --git a/frameworks/datatransmitmgr/dev_slinfo_list.c b/frameworks/datatransmitmgr/dev_slinfo_list.c index 5eebc95ef7d0f51ddc0e04da249d5697b81c718d..cc337198e432d9fa39be81bb6fa09c60b186527c 100644 --- a/frameworks/datatransmitmgr/dev_slinfo_list.c +++ b/frameworks/datatransmitmgr/dev_slinfo_list.c @@ -119,21 +119,6 @@ int32_t GetListLength(struct DATASLListParams *list) return listLength; } -int32_t FindListNode(struct DATASLListParams *list, struct DATASLCallbackParams *callbackParams) -{ - (void)pthread_mutex_lock(&gMutex); - struct DATASLListParams *pList = list->next; - while (pList != NULL && pList != list) { - if (CompareUdid(&(pList->callbackParams->queryParams), &(callbackParams->queryParams)) == DEVSL_SUCCESS) { - (void)pthread_mutex_unlock(&gMutex); - return DEVSL_SUCCESS; - } - pList = pList->next; - } - (void)pthread_mutex_unlock(&gMutex); - return DEVSL_ERROR; -} - void LookupCallback(struct DATASLListParams *list, DEVSLQueryParams *queryParams, int32_t result, uint32_t levelInfo) { struct DATASLCallbackParams tmpCallbackParams; diff --git a/interfaces/innerkits/datatransmitmgr/include/dev_slinfo_list.h b/interfaces/innerkits/datatransmitmgr/include/dev_slinfo_list.h index d2a76a435803d527edd8472a9cb1e5bde1980ce5..c15b2d46e90d9ea717dc1874eb7ec7acd6f264a3 100644 --- a/interfaces/innerkits/datatransmitmgr/include/dev_slinfo_list.h +++ b/interfaces/innerkits/datatransmitmgr/include/dev_slinfo_list.h @@ -40,8 +40,6 @@ void ClearList(struct DATASLListParams *list); int32_t GetListLength(struct DATASLListParams *list); -int32_t FindListNode(struct DATASLListParams *list, struct DATASLCallbackParams *callbackParams); - int32_t InitPthreadMutex(void); void DestroyPthreadMutex(void);