about summary refs log tree commit diff stats
path: root/012transform.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-03-20 00:48:04 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-03-20 00:55:33 -0700
commit2429c65cce16a11841212a71ec2bb50373aa54d4 (patch)
tree97c5f2fff44f80ea1a02d0476b9e31b5d44d1d50 /012transform.cc
parent3ac523393d15d51b0fd1b042eab4f7cb539f68a9 (diff)
downloadmu-2429c65cce16a11841212a71ec2bb50373aa54d4.tar.gz
2799 - new approach to undoing changes in tests
As outlined at the end of 2797. This worked out surprisingly well. Now
the snapshotting code touches fewer layers, and it's much better
behaved, with less need for special-case logic, particularly inside
run_interactive(). 30% slower, but should hopefully not cause any more
bugs.
Diffstat (limited to '012transform.cc')
-rw-r--r--012transform.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/012transform.cc b/012transform.cc
index 0130cd16..a416c20a 100644
--- a/012transform.cc
+++ b/012transform.cc
@@ -56,13 +56,6 @@ void transform_all() {
   // End Transform All
 }
 
-// Later we'll have transforms create recipes out of other recipes. This
-// helper will help ensure we don't lose the new recipes.
-void transform_permanently() {
-  transform_all();
-  Recently_added_recipes.clear();
-}
-
 void parse_int_reagents() {
   trace(9991, "transform") << "--- parsing any uninitialized reagents as integers" << end();
   for (map<recipe_ordinal, recipe>::iterator p = Recipe.begin(); p != Recipe.end(); ++p) {