From 068fcf6ab66946ac8c0e98a1ffc649a38b21b98b Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Thu, 16 Jan 2020 09:16:55 -0800 Subject: [PATCH] pvput fix JSON mode Broken by 50de6cc58ef3830e77280274fea769a66b1d46c9 --- pvtoolsSrc/pvput.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/pvtoolsSrc/pvput.cpp b/pvtoolsSrc/pvput.cpp index 7020e79..f77c1df 100644 --- a/pvtoolsSrc/pvput.cpp +++ b/pvtoolsSrc/pvput.cpp @@ -341,18 +341,9 @@ int main (int argc, char *argv[]) size_t sep = values[i].find_first_of('='); if(sep==std::string::npos) { thework.bare.push_back(values[i]); - if(!thework.bare.back().empty() && thework.bare.back()[0]=='{') { - fprintf(stderr, "JSON syntax not supported by this build.\n"); - return 1; - } } else { thework.pairs.push_back(std::make_pair(values[i].substr(0, sep), values[i].substr(sep+1))); - - if(!thework.pairs.back().second.empty() && thework.pairs.back().second[0]=='{') { - fprintf(stderr, "JSON syntax not supported by this build.\n"); - return 1; - } } }