about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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)