From c603cd6cef43100aa83a62e15f96fd54c9fb987e Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 13 Nov 2015 10:08:57 -0800 Subject: 2430 - make room for more transforms --- 098check_type_pointers.cc | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 098check_type_pointers.cc (limited to '098check_type_pointers.cc') diff --git a/098check_type_pointers.cc b/098check_type_pointers.cc deleted file mode 100644 index 36c548a9..00000000 --- a/098check_type_pointers.cc +++ /dev/null @@ -1,33 +0,0 @@ -:(before "End Transform All") -check_type_pointers(); - -:(code) -void check_type_pointers() { - for (map::iterator p = Recipe.begin(); p != Recipe.end(); ++p) { - if (any_type_ingredient_in_header(p->first)) continue; - const recipe& r = p->second; - for (long long int i = 0; i < SIZE(r.steps); ++i) { - const instruction& inst = r.steps.at(i); - for (long long int j = 0; j < SIZE(inst.ingredients); ++j) { - if (!inst.ingredients.at(j).type) { - raise_error << maybe(r.name) << " '" << inst.to_string() << "' -- " << inst.ingredients.at(j).to_string() << " has no type\n" << end(); - return; - } - if (!inst.ingredients.at(j).properties.at(0).second) { - raise_error << maybe(r.name) << " '" << inst.to_string() << "' -- " << inst.ingredients.at(j).to_string() << " has no type name\n" << end(); - return; - } - } - for (long long int j = 0; j < SIZE(inst.products); ++j) { - if (!inst.products.at(j).type) { - raise_error << maybe(r.name) << " '" << inst.to_string() << "' -- " << inst.products.at(j).to_string() << " has no type\n" << end(); - return; - } - if (!inst.products.at(j).properties.at(0).second) { - raise_error << maybe(r.name) << " '" << inst.to_string() << "' -- " << inst.products.at(j).to_string() << " has no type name\n" << end(); - return; - } - } - } - } -} -- cgit 1.4.1-2-gfad0