diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-05-27 09:50:39 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-05-27 09:50:39 -0700 |
commit | ea5ff2d46cb4e15add0dd48b660d0a200824db00 (patch) | |
tree | ada3ef3086dab6f3fcbaebedcfe8b9747e7b0fe7 /042name.cc | |
parent | 4698dc0002c671b15eb0cb7d52d2a0fa470c5fde (diff) | |
download | mu-ea5ff2d46cb4e15add0dd48b660d0a200824db00.tar.gz |
3022
Clean up 3020.
Diffstat (limited to '042name.cc')
-rw-r--r-- | 042name.cc | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/042name.cc b/042name.cc index 2dcfd524..fc341832 100644 --- a/042name.cc +++ b/042name.cc @@ -59,12 +59,7 @@ void transform_names(const recipe_ordinal r) { int v = lookup_name(inst.ingredients.at(in), r); if (v >= 0) { inst.ingredients.at(in).set_value(v); - // HACK: belongs in a later layer, either in the scenario layer which - // introduces the 'run' pseudo-instruction which is translated to - // run_* recipes, or later when we start using screens and consoles in - // scenarios. - if (is_special_name(inst.ingredients.at(in).name) && caller.name.substr(0, 4) == "run_") - inst.ingredients.at(in).properties.push_back(pair<string, string_tree*>("raw", NULL)); + // Done Placing Ingredient(inst, in, caller) } else { raise << maybe(caller.name) << "can't find a place to store '" << inst.ingredients.at(in).name << "'\n" << end(); @@ -84,12 +79,7 @@ void transform_names(const recipe_ordinal r) { int v = lookup_name(inst.products.at(out), r); if (v >= 0) { inst.products.at(out).set_value(v); - // HACK: belongs in a later layer, either in the scenario layer which - // introduces the 'run' pseudo-instruction which is translated to - // run_* recipes, or later when we start using screens and consoles in - // scenarios. - if (is_special_name(inst.products.at(out).name) && caller.name.substr(0, 4) == "run_") - inst.products.at(out).properties.push_back(pair<string, string_tree*>("raw", NULL)); + // Done Placing Product(inst, out, caller) } else { raise << maybe(caller.name) << "can't find a place to store '" << inst.products.at(out).name << "'\n" << end(); @@ -153,6 +143,7 @@ bool is_named_location(const reagent& x) { return !is_integer(x.name); } +// all names here should either be disqualified or also in bind_special_scenario_names bool is_special_name(const string& s) { if (s == "_") return true; if (s == "0") return true; |