summaryrefslogtreecommitdiffstats
path: root/runtime/queue.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-04-17 12:37:53 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-04-17 12:37:53 +0200
commit83c40e8838a2b64a3fdb02196944302533079d2a (patch)
treeef8ea2aef48f7dd362ef849114525a2f31a3f181 /runtime/queue.c
parent4beff8dab6ff3d0cb2e386ca6c4b468371bef05a (diff)
downloadrsyslog-83c40e8838a2b64a3fdb02196944302533079d2a.tar.gz
rsyslog-83c40e8838a2b64a3fdb02196944302533079d2a.tar.xz
rsyslog-83c40e8838a2b64a3fdb02196944302533079d2a.zip
some cleanup
Diffstat (limited to 'runtime/queue.c')
-rw-r--r--runtime/queue.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/runtime/queue.c b/runtime/queue.c
index c4a0fad2..e5db866c 100644
--- a/runtime/queue.c
+++ b/runtime/queue.c
@@ -607,28 +607,7 @@ static rsRetVal qDestructLinkedList(qqueue_t __attribute__((unused)) *pThis)
static rsRetVal qAddLinkedList(qqueue_t *pThis, void* pUsr)
{
DEFiRet;
-
iRet = qqueueAddLinkedList(&pThis->tVars.linklist.pRoot, &pThis->tVars.linklist.pLast, pUsr);
-#if 0
- qLinkedList_t *pEntry;
-
- ASSERT(pThis != NULL);
- if((pEntry = (qLinkedList_t*) malloc(sizeof(qLinkedList_t))) == NULL) {
- ABORT_FINALIZE(RS_RET_OUT_OF_MEMORY);
- }
-
- pEntry->pNext = NULL;
- pEntry->pUsr = pUsr;
-
- if(pThis->tVars.linklist.pRoot == NULL) {
- pThis->tVars.linklist.pRoot = pThis->tVars.linklist.pLast = pEntry;
- } else {
- pThis->tVars.linklist.pLast->pNext = pEntry;
- pThis->tVars.linklist.pLast = pEntry;
- }
-
-finalize_it:
-#endif
RETiRet;
}
@@ -636,24 +615,6 @@ static rsRetVal qDelLinkedList(qqueue_t *pThis, obj_t **ppUsr)
{
DEFiRet;
iRet = qqueueDelLinkedList(&pThis->tVars.linklist.pRoot, &pThis->tVars.linklist.pLast, ppUsr);
-#if 0
- qLinkedList_t *pEntry;
-
- ASSERT(pThis != NULL);
- ASSERT(pThis->tVars.linklist.pRoot != NULL);
-
- pEntry = pThis->tVars.linklist.pRoot;
- *ppUsr = pEntry->pUsr;
-
- if(pThis->tVars.linklist.pRoot == pThis->tVars.linklist.pLast) {
- pThis->tVars.linklist.pRoot = NULL;
- pThis->tVars.linklist.pLast = NULL;
- } else {
- pThis->tVars.linklist.pRoot = pEntry->pNext;
- }
- free(pEntry);
-
-#endif
RETiRet;
}