File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -486,10 +486,6 @@ class JsonbFwdIteratorT {
486486private:
487487 iterator current_;
488488};
489-
490- using hDictInsert = int (*)(const char *, unsigned int );
491- using hDictFind = int (*)(const char *, unsigned int );
492-
493489using JsonbTypeUnder = std::underlying_type_t <JsonbType>;
494490
495491#if defined(__clang__)
@@ -856,22 +852,6 @@ struct JsonbStringVal : public JsonbBinaryVal {
856852 // It's shorter than the size of payload
857853 return strnlen (payload, size);
858854 }
859- // convert the string (case insensitive) to a boolean value
860- // "false": 0
861- // "true": 1
862- // all other strings: -1
863- int getBoolVal () {
864- if (size == 4 && tolower (payload[0 ]) == ' t' && tolower (payload[1 ]) == ' r' &&
865- tolower (payload[2 ]) == ' u' && tolower (payload[3 ]) == ' e' ) {
866- return 1 ;
867- } else if (size == 5 && tolower (payload[0 ]) == ' f' && tolower (payload[1 ]) == ' a' &&
868- tolower (payload[2 ]) == ' l' && tolower (payload[3 ]) == ' s' &&
869- tolower (payload[4 ]) == ' e' ) {
870- return 0 ;
871- } else {
872- return -1 ;
873- }
874- }
875855};
876856
877857/*
You can’t perform that action at this time.
0 commit comments