diff --git a/source/libs/tdb/src/db/tdbBtree.c b/source/libs/tdb/src/db/tdbBtree.c index 7a88fee3d38c634d3fb311c0fb71b9d275ced514..e4fe97073a3c7007413b55822bfb99f901c02043 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;