diff --git a/vm/callstack.hpp b/vm/callstack.hpp index acbd29a6f0..dd80608d48 100755 --- a/vm/callstack.hpp +++ b/vm/callstack.hpp @@ -127,16 +127,4 @@ void factor_vm::iterate_callstack_reversed(context *ctx, Iterator &iterator) } } -template -void factor_vm::iterate_callstack(context *ctx, Iterator &iterator) -{ - stack_frame *frame = ctx->callstack_bottom - 1; - - while(frame >= ctx->callstack_top) - { - iterator(frame); - frame = frame_successor(frame); - } -} - } diff --git a/vm/vm.hpp b/vm/vm.hpp index 6770fa20b8..2cf4538404 100755 --- a/vm/vm.hpp +++ b/vm/vm.hpp @@ -178,17 +178,6 @@ struct factor_vm void primitive_check_datastack(); void primitive_load_locals(); - template - void iterate_active_callstacks(Iterator &iter) - { - std::set::const_iterator begin = active_contexts.begin(); - std::set::const_iterator end = active_contexts.end(); - while(begin != end) - { - iterate_callstack(*begin++,iter); - } - } - template void iterate_active_callstacks_reversed(Iterator &iter, Fixup &fixup) { @@ -667,9 +656,6 @@ struct factor_vm template void iterate_callstack_reversed(context *ctx, Iterator &iterator, Fixup &fixup); - template - void iterate_callstack(context *ctx, Iterator &iterator); - // cpu-* void dispatch_signal_handler(cell *sp, cell *pc, cell newpc);