about summary refs log tree commit diff stats
path: root/056shape_shifting_recipe.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-10-30 11:52:43 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-10-30 11:52:43 -0700
commitc610aec051c1ca6220fefc0a7255a97702fe828d (patch)
tree58725b87e029f60902db445fff1306756188a27c /056shape_shifting_recipe.cc
parent479e7a547adee04d3f9532eff58da79e28d28b91 (diff)
downloadmu-c610aec051c1ca6220fefc0a7255a97702fe828d.tar.gz
4093
Diffstat (limited to '056shape_shifting_recipe.cc')
-rw-r--r--056shape_shifting_recipe.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/056shape_shifting_recipe.cc b/056shape_shifting_recipe.cc
index d28b5713..8714a5e9 100644
--- a/056shape_shifting_recipe.cc
+++ b/056shape_shifting_recipe.cc
@@ -197,16 +197,12 @@ int number_of_concrete_type_names(recipe_ordinal r) {
   const recipe& caller = get(Recipe, r);
   int result = 0;
   for (int i = 0;  i < SIZE(caller.ingredients);  ++i)
-    result += number_of_concrete_type_names(caller.ingredients.at(i));
+    result += number_of_concrete_type_names(caller.ingredients.at(i).type);
   for (int i = 0;  i < SIZE(caller.products);  ++i)
-    result += number_of_concrete_type_names(caller.products.at(i));
+    result += number_of_concrete_type_names(caller.products.at(i).type);
   return result;
 }
 
-int number_of_concrete_type_names(const reagent& r) {
-  return number_of_concrete_type_names(r.type);
-}
-
 int number_of_concrete_type_names(const type_tree* type) {
   if (!type) return 0;
   if (type->atom)