Skip to content

Commit 39185be

Browse files
committed
remove code that is now never reached
1 parent 3c6eeda commit 39185be

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/jsvar.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -824,12 +824,6 @@ JsVar *jsvLock(JsVarRef ref) {
824824
//var->locks++;
825825
if ((var->flags & JSV_LOCK_MASK)!=JSV_LOCK_MASK) // if we hit the max amount of locks, don't exceed it (see https://github.com/espruino/Espruino/issues/2616)
826826
var->flags += JSV_LOCK_ONE;
827-
#ifdef DEBUG
828-
if (jsvGetLocks(var)==0) {
829-
jsError("Too many locks to Variable!");
830-
//jsPrint("Var #");jsPrintInt(ref);jsPrint("\n");
831-
}
832-
#endif
833827
return var;
834828
}
835829

0 commit comments

Comments
 (0)