aboutsummaryrefslogtreecommitdiffstats
path: root/epan/emem.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-12-24 03:39:19 +0000
committerEvan Huus <eapache@gmail.com>2013-12-24 03:39:19 +0000
commit18f94609d890abebedc91fc2f7b2c6a963d3c022 (patch)
treec60b720197b4f534065670a4e6147946db0f49e0 /epan/emem.c
parent7151a4d99e615664158543d7caf8cadf7f82f069 (diff)
Remove now-unused ephemeral stack code. And another one bites the dust...
svn path=/trunk/; revision=54436
Diffstat (limited to 'epan/emem.c')
-rw-r--r--epan/emem.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/epan/emem.c b/epan/emem.c
index 66fb8cfa04..c4868bad20 100644
--- a/epan/emem.c
+++ b/epan/emem.c
@@ -1272,50 +1272,6 @@ se_free_all(void)
emem_free_all(&se_packet_mem);
}
-ep_stack_t
-ep_stack_new(void) {
- ep_stack_t s = ep_new(struct _ep_stack_frame_t*);
- *s = ep_new0(struct _ep_stack_frame_t);
- return s;
-}
-
-/* for ep_stack_t we'll keep the popped frames so we reuse them instead
-of allocating new ones.
-*/
-
-void *
-ep_stack_push(ep_stack_t stack, void* data)
-{
- struct _ep_stack_frame_t* frame;
- struct _ep_stack_frame_t* head = (*stack);
-
- if (head->above) {
- frame = head->above;
- } else {
- frame = ep_new(struct _ep_stack_frame_t);
- head->above = frame;
- frame->below = head;
- frame->above = NULL;
- }
-
- frame->payload = data;
- (*stack) = frame;
-
- return data;
-}
-
-void *
-ep_stack_pop(ep_stack_t stack)
-{
-
- if ((*stack)->below) {
- (*stack) = (*stack)->below;
- return (*stack)->above->payload;
- } else {
- return NULL;
- }
-}
-
emem_tree_t *
se_tree_create(int type, const char *name)
{