This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.0 by this push:
new 4ab679b8a8d branch-4.0: [chore](jsonb) remove unused code from
jsonb_document #56496 (#56908)
4ab679b8a8d is described below
commit 4ab679b8a8d5bce1e1f11a5a6d0b7723135fbe44
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Oct 14 10:48:20 2025 +0800
branch-4.0: [chore](jsonb) remove unused code from jsonb_document #56496
(#56908)
Cherry-picked from #56496
Co-authored-by: Mryange <[email protected]>
---
be/src/util/jsonb_document.h | 20 --------------------
1 file changed, 20 deletions(-)
diff --git a/be/src/util/jsonb_document.h b/be/src/util/jsonb_document.h
index 5e6f777c07f..1e8078594bc 100644
--- a/be/src/util/jsonb_document.h
+++ b/be/src/util/jsonb_document.h
@@ -486,10 +486,6 @@ public:
private:
iterator current_;
};
-
-using hDictInsert = int (*)(const char*, unsigned int);
-using hDictFind = int (*)(const char*, unsigned int);
-
using JsonbTypeUnder = std::underlying_type_t<JsonbType>;
#if defined(__clang__)
@@ -856,22 +852,6 @@ public:
// It's shorter than the size of payload
return strnlen(payload, size);
}
- // convert the string (case insensitive) to a boolean value
- // "false": 0
- // "true": 1
- // all other strings: -1
- int getBoolVal() {
- if (size == 4 && tolower(payload[0]) == 't' && tolower(payload[1]) ==
'r' &&
- tolower(payload[2]) == 'u' && tolower(payload[3]) == 'e') {
- return 1;
- } else if (size == 5 && tolower(payload[0]) == 'f' &&
tolower(payload[1]) == 'a' &&
- tolower(payload[2]) == 'l' && tolower(payload[3]) == 's' &&
- tolower(payload[4]) == 'e') {
- return 0;
- } else {
- return -1;
- }
- }
};
/*
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]