remove duplicate operator== implementation

This commit is contained in:
2025-06-19 21:27:11 -05:00
parent 00a1d8f889
commit 75f9dbcc80
2 changed files with 0 additions and 15 deletions

View File

@@ -19,7 +19,6 @@ using namespace ticpp;
extern Document xmlDocFromStream(istream& stream, string name);
extern void readOutdoorsFromXml(Document&& data, cOutdoors& out);
bool operator==(const cOutdoors::cWandering& lhs, const cOutdoors::cWandering& rhs);
ostream& operator<<(ostream& out, const cOutdoors::cWandering& enc);
TEST_CASE("Loading an outdoor section definition") {
@@ -124,19 +123,6 @@ TEST_CASE("Loading an outdoor section definition") {
}
}
bool operator==(const cOutdoors::cWandering& lhs, const cOutdoors::cWandering& rhs) {
if(lhs.monst != rhs.monst) return false;
if(lhs.friendly != rhs.friendly) return false;
if(lhs.spec_on_meet != rhs.spec_on_meet) return false;
if(lhs.spec_on_win != rhs.spec_on_win) return false;
if(lhs.spec_on_flee != rhs.spec_on_flee) return false;
if(lhs.cant_flee != rhs.cant_flee) return false;
if(lhs.forced != rhs.forced) return false;
if(lhs.end_spec1 != rhs.end_spec1) return false;
if(lhs.end_spec2 != rhs.end_spec2) return false;
return true;
}
ostream& operator<<(ostream& out, const cOutdoors::cWandering& enc) {
out << "Encounter {";
out << "hostile = ";

View File

@@ -19,7 +19,6 @@ extern Document xmlDocFromStream(istream& stream, string name);
extern void readOutdoorsFromXml(Document&& data, cOutdoors& out);
extern void writeOutdoorsToXml(ticpp::Printer&& data, cOutdoors& sector);
extern bool operator==(const cOutdoors::cWandering& lhs, const cOutdoors::cWandering& rhs);
extern ostream& operator<<(ostream& out, const cOutdoors::cWandering& enc);
static void in_and_out(string name, cOutdoors& out, cScenario& scen) {