about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-10-18 10:44:40 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-10-18 10:44:40 -0700
commit5813bcfc7d5c368514554d712da45584b5114f0b (patch)
tree09a68f2b2be114d962c8db1ff500c34ee982303d
parentc83f3bca47b1538ce469fc4463d6165156735675 (diff)
downloadmu-5813bcfc7d5c368514554d712da45584b5114f0b.tar.gz
3520
Drop a few debug prints. Hopefully now we need never duplicate trace
statements and can instead just dump them to screen.

I'll soon need the ability to selectively dump traces for a specific
label.
-rw-r--r--012transform.cc3
-rw-r--r--040brace.cc1
-rw-r--r--042name.cc1
-rw-r--r--045closure_name.cc1
-rw-r--r--062convert_ingredients_to_text.cc1
-rw-r--r--072scheduler.cc1
-rw-r--r--073wait.cc2
7 files changed, 0 insertions, 10 deletions
diff --git a/012transform.cc b/012transform.cc
index 3a23efeb..7b29d326 100644
--- a/012transform.cc
+++ b/012transform.cc
@@ -45,9 +45,7 @@ void initialize_transforms() {
 
 void transform_all() {
   trace(9990, "transform") << "=== transform_all()" << end();
-//?   cerr << "=== transform_all\n";
   for (int t = 0; t < SIZE(Transform); ++t) {
-//?     cerr << "transform " << t << '\n';
     for (map<recipe_ordinal, recipe>::iterator p = Recipe.begin(); p != Recipe.end(); ++p) {
       recipe& r = p->second;
       if (r.transformed_until != t-1) continue;
@@ -56,7 +54,6 @@ void transform_all() {
       r.transformed_until = t;
     }
   }
-//?   cerr << "wrapping up transform\n";
   parse_int_reagents();  // do this after all other transforms have run
   // End transform_all
 }
diff --git a/040brace.cc b/040brace.cc
index 89b4b633..bfabe5da 100644
--- a/040brace.cc
+++ b/040brace.cc
@@ -40,7 +40,6 @@ void transform_braces(const recipe_ordinal r) {
   // use signed integer for step index because we'll be doing arithmetic on it
   list<pair<int/*OPEN/CLOSE*/, /*step*/int> > braces;
   trace(9991, "transform") << "--- transform braces for recipe " << get(Recipe, r).name << end();
-//?   cerr << "--- transform braces for recipe " << get(Recipe, r).name << '\n';
   for (int index = 0; index < SIZE(get(Recipe, r).steps); ++index) {
     const instruction& inst = get(Recipe, r).steps.at(index);
     if (inst.label == "{") {
diff --git a/042name.cc b/042name.cc
index a9f05d5e..784e7d90 100644
--- a/042name.cc
+++ b/042name.cc
@@ -37,7 +37,6 @@ Name = Name_snapshot;
 void transform_names(const recipe_ordinal r) {
   recipe& caller = get(Recipe, r);
   trace(9991, "transform") << "--- transform names for recipe " << caller.name << end();
-//?   cerr << "--- transform names for recipe " << caller.name << '\n';
   bool names_used = false;
   bool numeric_locations_used = false;
   map<string, int>& names = Name[r];
diff --git a/045closure_name.cc b/045closure_name.cc
index cf96d7c6..4c813d4b 100644
--- a/045closure_name.cc
+++ b/045closure_name.cc
@@ -38,7 +38,6 @@ Transform.push_back(collect_surrounding_spaces);  // idempotent
 :(code)
 void collect_surrounding_spaces(const recipe_ordinal r) {
   trace(9991, "transform") << "--- collect surrounding spaces for recipe " << get(Recipe, r).name << end();
-//?   cerr << "--- collect surrounding spaces for recipe " << get(Recipe, r).name << '\n';
   for (int i = 0; i < SIZE(get(Recipe, r).steps); ++i) {
     const instruction& inst = get(Recipe, r).steps.at(i);
     if (inst.is_label) continue;
diff --git a/062convert_ingredients_to_text.cc b/062convert_ingredients_to_text.cc
index 222203a8..a223992b 100644
--- a/062convert_ingredients_to_text.cc
+++ b/062convert_ingredients_to_text.cc
@@ -60,7 +60,6 @@ Transform.push_back(convert_ingredients_to_text);
 void convert_ingredients_to_text(recipe_ordinal r) {
   recipe& caller = get(Recipe, r);
   trace(9991, "transform") << "--- convert some ingredients to text in recipe " << caller.name << end();
-//?   cerr << "--- convert some ingredients to text in recipe " << caller.name << '\n';
   // in recipes without named locations, 'stash' is still not extensible
   if (contains_numeric_locations(caller)) return;
   convert_ingredients_to_text(caller);
diff --git a/072scheduler.cc b/072scheduler.cc
index 0496d2b1..411635de 100644
--- a/072scheduler.cc
+++ b/072scheduler.cc
@@ -67,7 +67,6 @@ void run(routine* rr) {
     assert(Current_routine);
     assert(Current_routine->state == RUNNING);
     trace(9990, "schedule") << current_routine_label() << end();
-//?     cerr << "schedule: " << current_routine_label() << '\n';
     run_current_routine();
     // Scheduler State Transitions
     if (Current_routine->completed())
diff --git a/073wait.cc b/073wait.cc
index 0f6266eb..122f4731 100644
--- a/073wait.cc
+++ b/073wait.cc
@@ -346,7 +346,6 @@ case WAIT_FOR_ROUTINE: {
   Current_routine->state = WAITING;
   Current_routine->waiting_on_routine = ingredients.at(0).at(0);
   trace(9998, "run") << "waiting for routine " << ingredients.at(0).at(0) << end();
-//?   cerr << Current_routine->id << ": waiting for routine " << ingredients.at(0).at(0) << '\n';
   break;
 }
 
@@ -365,7 +364,6 @@ for (int i = 0; i < SIZE(Routines); ++i) {
     if (waitee->id == id && waitee->state != RUNNING && waitee->state != WAITING) {
       // routine is COMPLETED or DISCONTINUED
       trace(9999, "schedule") << "waking up routine " << waiter->id << end();
-//?       cerr << id << " is now done (" << waitee->state << "); waking up waiting routine " << waiter->id << '\n';
       waiter->state = RUNNING;
       waiter->waiting_on_routine = 0;
     }