From 0756091e8cff5bf0471cd3545abddd3dab000077 Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Fri, 26 Aug 2016 11:09:18 +0200 Subject: [PATCH] Remove st/ldglb (no longer used) --- libs/microbit/core.cpp | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/libs/microbit/core.cpp b/libs/microbit/core.cpp index ab1638b4..8e18ad65 100644 --- a/libs/microbit/core.cpp +++ b/libs/microbit/core.cpp @@ -261,36 +261,6 @@ namespace pxtrt { r->unref(); } - //% - uint32_t ldglb(int idx) { - check(0 <= idx && idx < numGlobals, ERR_OUT_OF_BOUNDS, 7); - return globals[idx]; - } - - //% - uint32_t ldglbRef(int idx) { - check(0 <= idx && idx < numGlobals, ERR_OUT_OF_BOUNDS, 7); - uint32_t tmp = globals[idx]; - incr(tmp); - return tmp; - } - - // note the idx comes last - it's more convenient that way in the emitter - //% - void stglb(uint32_t v, int idx) - { - check(0 <= idx && idx < numGlobals, ERR_OUT_OF_BOUNDS, 7); - globals[idx] = v; - } - - //% - void stglbRef(uint32_t v, int idx) - { - check(0 <= idx && idx < numGlobals, ERR_OUT_OF_BOUNDS, 7); - decr(globals[idx]); - globals[idx] = v; - } - // Store a captured local in a closure. It returns the action, so it can be chained. //% RefAction *stclo(RefAction *a, int idx, uint32_t v)