From b607fe277a454ec81ae98b389839c45434e6baba Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Tue, 25 Oct 2022 16:46:11 +0800 Subject: [PATCH] fix(util): remove no reference function --- source/util/src/tcompression.c | 2 ++ source/util/src/tdigest.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/source/util/src/tcompression.c b/source/util/src/tcompression.c index fbbe970c74..18305e594b 100644 --- a/source/util/src/tcompression.c +++ b/source/util/src/tcompression.c @@ -371,6 +371,7 @@ int32_t tsDecompressBoolImp(const char *const input, const int32_t nelements, ch return nelements; } +#if 0 /* Run Length Encoding(RLE) Method */ int32_t tsCompressBoolRLEImp(const char *const input, const int32_t nelements, char *const output) { int32_t _pos = 0; @@ -419,6 +420,7 @@ int32_t tsDecompressBoolRLEImp(const char *const input, const int32_t nelements, } } } +#endif /* ----------------------------------------------String Compression * ---------------------------------------------- */ diff --git a/source/util/src/tdigest.c b/source/util/src/tdigest.c index dc2a943de9..337ee803ff 100644 --- a/source/util/src/tdigest.c +++ b/source/util/src/tdigest.c @@ -183,6 +183,7 @@ void tdigestAdd(TDigest *t, double x, int64_t w) { if (t->num_buffered_pts >= t->threshold) tdigestCompress(t); } +#if 0 double tdigestCDF(TDigest *t, double x) { if (t == NULL) return 0; @@ -233,6 +234,7 @@ double tdigestCDF(TDigest *t, double x) { return 1; } +#endif double tdigestQuantile(TDigest *t, double q) { if (t == NULL) return 0; -- GitLab