diff options
Diffstat (limited to '043space.cc')
-rw-r--r-- | 043space.cc | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/043space.cc b/043space.cc index f9125daf..d348f736 100644 --- a/043space.cc +++ b/043space.cc @@ -292,18 +292,3 @@ bool contains_non_special_name(const recipe_ordinal r) { } return false; } - -// reagent comparison -- only between reagents in a single recipe -bool operator==(const reagent& a, const reagent& b) { - if (a.name != b.name) return false; - if (property(a, "space") != property(b, "space")) return false; - return true; -} - -bool operator<(const reagent& a, const reagent& b) { - int aspace = 0, bspace = 0; - if (has_property(a, "space")) aspace = to_integer(property(a, "space")->value); - if (has_property(b, "space")) bspace = to_integer(property(b, "space")->value); - if (aspace != bspace) return aspace < bspace; - return a.name < b.name; -} |