diff --git a/dlls/richedit/charlist.c b/dlls/richedit/charlist.c index e8524ae69dc..ed4c0cc5f33 100644 --- a/dlls/richedit/charlist.c +++ b/dlls/richedit/charlist.c @@ -56,29 +56,6 @@ void CHARLIST_Enqueue( CHARLIST* pCharList, char myChar ) pCharList->nCount++; } -void CHARLIST_Push( CHARLIST* pCharList, char myChar) -{ - CHARLISTENTRY* pNewEntry = malloc(sizeof(CHARLISTENTRY)); - - TRACE("\n"); - - pNewEntry->myChar = myChar; - - if(pCharList->pHead == NULL) - { - pCharList->pHead = pCharList->pTail = pNewEntry; - pNewEntry->pNext = NULL; - - } - else - { - pNewEntry->pNext = pCharList->pHead; - pCharList->pHead = pNewEntry; - } - - pCharList->nCount++; -} - char CHARLIST_Dequeue(CHARLIST* pCharList) { CHARLISTENTRY* pCurrent; @@ -151,4 +128,3 @@ int CHARLIST_toBuffer(CHARLIST* pCharList, char* pBuffer, int nBufferSize) return 0; } - diff --git a/dlls/richedit/charlist.h b/dlls/richedit/charlist.h index 3273fb22a32..af98bbe3434 100644 --- a/dlls/richedit/charlist.h +++ b/dlls/richedit/charlist.h @@ -36,7 +36,6 @@ typedef struct _tagCHARLIST void CHARLIST_Enqueue( CHARLIST* pCharList, char myChar); -void CHARLIST_Push( CHARLIST* pCharList, char myChar); char CHARLIST_Dequeue(CHARLIST* pCharList); int CHARLIST_GetNbItems(CHARLIST* pCharList); void CHARLIST_FreeList(CHARLIST* pCharList);