From 78b2eaed8d9f89a870d70d78eecdf4aa9a3980aa Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Tue, 30 Apr 2019 18:46:44 -0600 Subject: [PATCH] Removing traces --- examples/fallback/main.hank | 5 +---- hank/Story.hx | 9 +-------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/examples/fallback/main.hank b/examples/fallback/main.hank index 11f457c..b4782c3 100644 --- a/examples/fallback/main.hank +++ b/examples/fallback/main.hank @@ -12,7 +12,4 @@ This is what fallback choices are for! * One other thing -> end * -> - You can put content in a fallback choice using the "choice then arrow" syntax. - - -/* TODO test the situation where we want to allow multiple fallbacks, each one having a different condition */ \ No newline at end of file + You can put content in a fallback choice using the "choice then arrow" syntax. \ No newline at end of file diff --git a/hank/Story.hx b/hank/Story.hx index e4a4ad5..b5671aa 100644 --- a/hank/Story.hx +++ b/hank/Story.hx @@ -151,8 +151,6 @@ class Story { if (choice.depth > weaveDepth) { weaveDepth = choice.depth; } else if (choice.depth < weaveDepth) { - trace(choice); - trace(weaveDepth); gotoNextGather(); return nextFrame(); } @@ -214,7 +212,6 @@ class Story { } private function gotoNextGather() { - trace('current line: ${ast[exprIndex]}'); var gatherIndex = ast.findNextGather(currentFile(), exprIndex+1,weaveDepth); if (gatherIndex == -1) { @@ -258,7 +255,6 @@ class Story { public function divertTo(target: String) { // Don't try to divert to a fallback target if (target.length == 0) { - trace('current line when diverting: ${ast[exprIndex]}'); return; } switch (parent) { @@ -271,7 +267,7 @@ class Story { default: } - trace('diverting to $target'); + // trace('diverting to $target'); var newScopes = resolveNodeInScope(target); var targetIdx = newScopes[0].astIndex; @@ -322,8 +318,6 @@ class Story { } // Update nodeScopes to point to the new scope nodeScopes = newScopes; - - trace('weaveDepth=$weaveDepth'); } public function choose(choiceIndex: Int): String { @@ -345,7 +339,6 @@ class Story { case None: } weaveDepth = choice.depth + 1; - trace('weaveDepth=$weaveDepth'); // if the choice is onceOnly, add its id to the shit list if (choice.onceOnly) { choicesTaken.push(choice.id);