From 0d50ce20548ca457e30f5242ff0aec4a46941b2c Mon Sep 17 00:00:00 2001 From: wangyongzhong2 Date: Wed, 21 Sep 2022 12:03:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=AF=91=E5=91=8A=E8=AD=A6=E6=B8=85?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangyongzhong2 --- frameworks/datatransmitmgr/dev_slinfo_list.c | 15 --------------- .../datatransmitmgr/include/dev_slinfo_list.h | 2 -- 2 files changed, 17 deletions(-) diff --git a/frameworks/datatransmitmgr/dev_slinfo_list.c b/frameworks/datatransmitmgr/dev_slinfo_list.c index 5eebc95..cc33719 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 d2a76a4..c15b2d4 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); -- Gitee