about summary refs log tree commit diff stats
path: root/010vm.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-05-26 16:43:18 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-05-26 17:36:16 -0700
commit2b25071710656d7a755c2f66c99734cd7990d1ba (patch)
treef4e3a83d6397343c7c225a354f4f2c837aef8190 /010vm.cc
parent5e320aa049bc1d5ad78eec23be0127f4a8d6ec3d (diff)
downloadmu-2b25071710656d7a755c2f66c99734cd7990d1ba.tar.gz
3877
Diffstat (limited to '010vm.cc')
-rw-r--r--010vm.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/010vm.cc b/010vm.cc
index 50cb4215..839cd356 100644
--- a/010vm.cc
+++ b/010vm.cc
@@ -606,13 +606,8 @@ string to_string(const recipe& r) {
 string to_original_string(const recipe& r) {
   ostringstream out;
   out << "recipe " << r.name << " [\n";
-  for (int i = 0;  i < SIZE(r.steps);  ++i) {
-    const instruction& inst = r.steps.at(i);
-    if (inst.original_string.empty())
-      out << "  " << to_original_string(r.steps.at(i)) << '\n';
-    else
-      out << "  " << r.steps.at(i).original_string << '\n';
-  }
+  for (int i = 0;  i < SIZE(r.steps);  ++i)
+    out << "  " << to_original_string(r.steps.at(i)) << '\n';
   out << "]\n";
   return out.str();
 }