about summary refs log tree commit diff stats
path: root/010vm.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-02-06 23:44:46 -0800
committerKartik K. Agaram <vc@akkartik.com>2017-02-06 23:44:46 -0800
commit95f2fe96262fcc5977c4633828730acc588c99b3 (patch)
tree080c35bc0d25bbf8df1e8f5d5d04c2bf1b8688f7 /010vm.cc
parent6078ecf1f67c0ff0089d58c8b9c11ec8230e9238 (diff)
downloadmu-95f2fe96262fcc5977c4633828730acc588c99b3.tar.gz
3742 - move instruction.old_name to a later layer
The drawback of this is that we forget to initialize old_name when we
create instructions out of whole cloth in a few places. But this problem
already existed..
Diffstat (limited to '010vm.cc')
-rw-r--r--010vm.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/010vm.cc b/010vm.cc
index b35d39d8..fea11a50 100644
--- a/010vm.cc
+++ b/010vm.cc
@@ -33,7 +33,6 @@ struct instruction {
   bool is_label;
   string label;  // only if is_label
   string name;  // only if !is_label
-  string old_name;  // before our automatic rewrite rules
   string original_string;  // for error messages
   recipe_ordinal operation;  // get(Recipe_ordinal, name)
   vector<reagent> ingredients;  // only if !is_label
@@ -266,7 +265,6 @@ void instruction::clear() {
   is_label=false;
   label.clear();
   name.clear();
-  old_name.clear();
   operation=IDLE;
   ingredients.clear();
   products.clear();