From 0e30b7604cf34f4eb33b2c50dfd0eebf54d5cd5a Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Tue, 15 Mar 2022 08:49:31 +0000 Subject: [PATCH] more TDB --- source/libs/tdb/src/db/tdbBtree.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/source/libs/tdb/src/db/tdbBtree.c b/source/libs/tdb/src/db/tdbBtree.c index 7a88fee3d3..e4fe97073a 100644 --- a/source/libs/tdb/src/db/tdbBtree.c +++ b/source/libs/tdb/src/db/tdbBtree.c @@ -48,7 +48,6 @@ typedef struct { } SBtreeZeroPageArg; static int tdbBtCursorMoveTo(SBtCursor *pCur, const void *pKey, int kLen, int *pCRst); -static int tdbEncodeLength(u8 *pBuf, uint32_t len); static int tdbCompareKeyAndCell(const void *pKey, int kLen, const void *pCell); static int tdbDefaultKeyCmprFn(const void *pKey1, int keyLen1, const void *pKey2, int keyLen2); static int tdbBtreeOpenImpl(SBTree *pBt); @@ -233,19 +232,6 @@ static int tdbBtCursorMoveTo(SBtCursor *pCur, const void *pKey, int kLen, int *p return 0; } -static int tdbEncodeLength(u8 *pBuf, uint32_t len) { - int iCount = 0; - - while (len > 127) { - pBuf[iCount++] = (u8)((len & 0xff) | 128); - len >>= 7; - } - - pBuf[iCount++] = (u8)len; - - return iCount; -} - static int tdbBtCursorMoveToRoot(SBtCursor *pCur) { SBTree *pBt; SPager *pPager; -- GitLab