Skip to content

Commit 498d127

Browse files
committed
remove debug crap for PR
1 parent 4711c0f commit 498d127

3 files changed

Lines changed: 0 additions & 17 deletions

File tree

src/jsinteractive.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@
3535
extern void jshPrintBanner(void); // prints a debugging banner while we're in beta
3636
#endif
3737

38-
#ifdef FLASH_STR
39-
// debugging...
40-
#define os_printf os_printf_plus
41-
extern void os_printf_plus(char *fmt, ...);
42-
#endif
43-
44-
4538
// ----------------------------------------------------------------------------
4639
typedef enum {
4740
IS_NONE,

src/jsutils.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@
1919
#include "jswrap_error.h"
2020
#include "jswrap_json.h"
2121

22-
#ifdef FLASH_STR
23-
// debugging...
24-
#define os_printf os_printf_plus
25-
extern void os_printf_plus(char *fmt, ...);
26-
#endif
27-
2822
/** Error flags for things that we don't really want to report on the console,
2923
* but which are good to know about */
3024
JsErrorFlags jsErrorFlags;

src/jsvar.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -536,10 +536,6 @@ static NO_INLINE void jsvUnLockFreeIfNeeded(JsVar *var) {
536536
/// Unlock this variable - this is SAFE for null variables
537537
ALWAYS_INLINE void jsvUnLock(JsVar *var) {
538538
if (!var) return;
539-
if (jsvGetLocks(var) <= 0) {
540-
jsiConsolePrintf("ASSERT FAIL: unlocking unlocked variable: %q %j (%t)\n", var, var, var);
541-
jsvTrace(var, 2);
542-
}
543539
assert(jsvGetLocks(var)>0);
544540
var->flags -= JSV_LOCK_ONE;
545541
// Now see if we can properly free the data

0 commit comments

Comments
 (0)