btcs

bitcoin script parser/evaluator/compiler/decompiler
git clone git://jb55.com/btcs
Log | Files | Refs | README | LICENSE

commit 24808760cabe629a19c056e9da5f5c663723194b
parent f342f554abe8c34412de13fdda91236b457f3598
Author: William Casarin <jb55@jb55.com>
Date:   Tue, 19 Dec 2017 10:49:53 -0800

stack: remove unused code

Diffstat:
Mstack.c | 12------------
1 file changed, 0 insertions(+), 12 deletions(-)

diff --git a/stack.c b/stack.c @@ -82,18 +82,6 @@ stack_push(struct stack *stack, void *val) { *stack->top++ = val; } -// TODO: UNTESTED! -void * -stack_erase(struct stack *stack, int ind) { - int size = stack_size(stack); - assert(ind >= 0); - assert(ind < size); - void * erased = *(stack->bottom + ind); - memcpy(stack->bottom + ind, stack->bottom + ind + size, size); - stack->top--; - return erased; -} - void * stack_pop(struct stack *stack) { assert(stack);