mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Remove an unused field from the MemPage object.
FossilOrigin-Name: 5fc0a4c1f353c4c06fcbc4bce8bbe1897ef49eee
This commit is contained in:
@@ -1079,7 +1079,6 @@ static void btreeParseCellPtrNoPayload(
|
||||
){
|
||||
assert( sqlite3_mutex_held(pPage->pBt->mutex) );
|
||||
assert( pPage->leaf==0 );
|
||||
assert( pPage->noPayload );
|
||||
assert( pPage->childPtrSize==4 );
|
||||
#ifndef SQLITE_DEBUG
|
||||
UNUSED_PARAMETER(pPage);
|
||||
@@ -1101,8 +1100,6 @@ static void btreeParseCellPtr(
|
||||
|
||||
assert( sqlite3_mutex_held(pPage->pBt->mutex) );
|
||||
assert( pPage->leaf==0 || pPage->leaf==1 );
|
||||
assert( pPage->intKeyLeaf || pPage->noPayload );
|
||||
assert( pPage->noPayload==0 );
|
||||
assert( pPage->intKeyLeaf );
|
||||
assert( pPage->childPtrSize==0 );
|
||||
pIter = pCell;
|
||||
@@ -1171,7 +1168,6 @@ static void btreeParseCellPtrIndex(
|
||||
assert( sqlite3_mutex_held(pPage->pBt->mutex) );
|
||||
assert( pPage->leaf==0 || pPage->leaf==1 );
|
||||
assert( pPage->intKeyLeaf==0 );
|
||||
assert( pPage->noPayload==0 );
|
||||
pIter = pCell + pPage->childPtrSize;
|
||||
nPayload = *pIter;
|
||||
if( nPayload>=0x80 ){
|
||||
@@ -1232,7 +1228,6 @@ static u16 cellSizePtr(MemPage *pPage, u8 *pCell){
|
||||
pPage->xParseCell(pPage, pCell, &debuginfo);
|
||||
#endif
|
||||
|
||||
assert( pPage->noPayload==0 );
|
||||
nSize = *pIter;
|
||||
if( nSize>=0x80 ){
|
||||
pEnd = &pIter[8];
|
||||
@@ -1690,11 +1685,9 @@ static int decodeFlags(MemPage *pPage, int flagByte){
|
||||
pPage->intKey = 1;
|
||||
if( pPage->leaf ){
|
||||
pPage->intKeyLeaf = 1;
|
||||
pPage->noPayload = 0;
|
||||
pPage->xParseCell = btreeParseCellPtr;
|
||||
}else{
|
||||
pPage->intKeyLeaf = 0;
|
||||
pPage->noPayload = 1;
|
||||
pPage->xCellSize = cellSizePtrNoPayload;
|
||||
pPage->xParseCell = btreeParseCellPtrNoPayload;
|
||||
}
|
||||
@@ -1709,7 +1702,6 @@ static int decodeFlags(MemPage *pPage, int flagByte){
|
||||
assert( (PTF_ZERODATA|PTF_LEAF)==10 );
|
||||
pPage->intKey = 0;
|
||||
pPage->intKeyLeaf = 0;
|
||||
pPage->noPayload = 0;
|
||||
pPage->xParseCell = btreeParseCellPtrIndex;
|
||||
pPage->maxLocal = pBt->maxLocal;
|
||||
pPage->minLocal = pBt->minLocal;
|
||||
|
Reference in New Issue
Block a user