Skip to content

Commit

Permalink
Remove version check from ipuz reader.
Browse files Browse the repository at this point in the history
v2 is generally a safe expansion on top of v1 - ipuz.org notes that some
fields have been deprecated, though the only explicit mention of
"deprecated" on the v2 doc relates to a field in Sudoku puzzles. There
may be some additional features that aren't yet supported, but these can
always be added later.

See mrichards42#172
jpd236 committed Dec 17, 2021
1 parent 1960e5d commit bf88e6e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions puz/formats/ipuz/load_ipuz.cpp
Original file line number Diff line number Diff line change
@@ -146,9 +146,6 @@ bool ipuzParser::DoLoadPuzzle(Puzzle * puz, json::Value * root)
{
json::Map * doc = root->AsMap();
try {
// Check version
if (doc->PopString(puzT("version")) != puzT("http://ipuz.org/v1"))
throw LoadError("Unreadable ipuz version");
// Check kind
string_t kind = doc->PopArray(puzT("kind"))->at(0)->AsString();
if (kind.substr(kind.size() - 2) == puzT("#1"))

0 comments on commit bf88e6e

Please sign in to comment.