summaryrefslogtreecommitdiffstatshomepage
path: root/py/emitpass1.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-10 17:28:54 +0000
committerDamien George <damien.p.george@gmail.com>2014-04-10 17:28:54 +0000
commitd66ae1864031d7a369c2030b79d4ac649be5c0db (patch)
tree2a223d57a8b88838db95f99e45d7fdcf88936be6 /py/emitpass1.c
parent069a35e3a56bc68571470c91d919f013d4b40650 (diff)
downloadmicropython-d66ae1864031d7a369c2030b79d4ac649be5c0db.tar.gz
micropython-d66ae1864031d7a369c2030b79d4ac649be5c0db.zip
py: Simplify stack get/set to become stack adjust in emitters.
Can do this now that the stack size calculation is improved.
Diffstat (limited to 'py/emitpass1.c')
-rw-r--r--py/emitpass1.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/py/emitpass1.c b/py/emitpass1.c
index e529e71b99..301c04ebea 100644
--- a/py/emitpass1.c
+++ b/py/emitpass1.c
@@ -39,10 +39,6 @@ STATIC bool emit_pass1_last_emit_was_return_value(emit_t *emit) {
return false;
}
-STATIC int emit_pass1_get_stack_size(emit_t *emit) {
- return 0;
-}
-
STATIC void emit_pass1_load_id(emit_t *emit, qstr qstr) {
// name adding/lookup
bool added;
@@ -108,7 +104,6 @@ const emit_method_table_t emit_pass1_method_table = {
emit_pass1_start_pass,
emit_pass1_end_pass,
emit_pass1_last_emit_was_return_value,
- emit_pass1_get_stack_size,
(void*)emit_pass1_dummy,
(void*)emit_pass1_dummy,