Cleanup unnecessary returns

This commit is contained in:
Jordan Bayles 2020-11-08 17:04:52 -08:00
parent a30ef97465
commit f100614249
3 changed files with 0 additions and 19 deletions

View File

@ -299,7 +299,6 @@ public:
}
throwRuntimeError("JSON value cannot be cast to an array.");
return {};
}
bool asBool() const override
@ -310,7 +309,6 @@ public:
}
throwRuntimeError("JSON value cannot be cast to a boolean.");
return {};
}
bool asBool(bool &result) const override
@ -341,7 +339,6 @@ public:
}
throwRuntimeError("JSON value cannot be cast to a double.");
return {};
}
bool asDouble(double &result) const override
@ -379,7 +376,6 @@ public:
}
throwRuntimeError("JSON value cannot be cast as an integer.");
return {};
}
bool asInteger(int64_t &result) const override
@ -431,7 +427,6 @@ public:
}
throwRuntimeError("JSON value cannot be cast to an object.");
return {};
}
std::string asString() const override
@ -442,7 +437,6 @@ public:
}
throwRuntimeError("JSON value cannot be cast to a string.");
return {};
}
bool asString(std::string &result) const override
@ -559,7 +553,6 @@ public:
}
throwRuntimeError("JSON value is not an array.");
return {};
}
bool getArraySize(size_t &result) const override
@ -575,7 +568,6 @@ public:
}
throwRuntimeError("JSON value is not a boolean.");
return {};
}
bool getBool(bool &result) const override
@ -591,7 +583,6 @@ public:
}
throwRuntimeError("JSON value is not a double.");
return {};
}
bool getDouble(double &result) const override
@ -607,7 +598,6 @@ public:
}
throwRuntimeError("JSON value is not an integer.");
return {};
}
bool getInteger(int64_t &result) const override
@ -623,7 +613,6 @@ public:
}
throwRuntimeError("JSON value is not a number.");
return {};
}
bool getNumber(double &result) const override
@ -663,7 +652,6 @@ public:
}
throwRuntimeError("JSON value is not an object.");
return {};
}
size_t getObjectSize() const override
@ -674,7 +662,6 @@ public:
}
throwRuntimeError("JSON value is not an object.");
return {};
}
bool getObjectSize(size_t &result) const override
@ -690,7 +677,6 @@ public:
}
throwRuntimeError("JSON value is not a string.");
return {};
}
bool getString(std::string &result) const override

View File

@ -112,7 +112,6 @@ public:
}
throwRuntimeError("String value cannot be cast to array");
return {};
}
bool asBool() const override
@ -155,7 +154,6 @@ public:
}
throwRuntimeError("String value cannot be cast to object");
return {};
}
std::string asString() const override

View File

@ -175,7 +175,6 @@ public:
}
throwRuntimeError("Schema does not have a description");
return {};
}
/**
@ -192,7 +191,6 @@ public:
}
throwRuntimeError("Schema does not have an ID");
return {};
}
/**
@ -209,7 +207,6 @@ public:
}
throwRuntimeError("Schema does not have a title");
return {};
}
/**