Skip to content

Commit 3e91ad9

Browse files
authored
[chore](jsonb) remove unused code from jsonb_document (apache#56496)
1 parent e3181d5 commit 3e91ad9

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

be/src/util/jsonb_document.h

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -486,10 +486,6 @@ class JsonbFwdIteratorT {
486486
private:
487487
iterator current_;
488488
};
489-
490-
using hDictInsert = int (*)(const char*, unsigned int);
491-
using hDictFind = int (*)(const char*, unsigned int);
492-
493489
using 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
/*

0 commit comments

Comments
 (0)