1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Remove code made unreachable by the enhancement of the previous check-in.

FossilOrigin-Name: 9e31a275ef494ea8713a1d60a15b84157e57c3ff
This commit is contained in:
drh
2012-01-11 16:16:08 +00:00
parent 935de7e81a
commit a71a98df88
3 changed files with 7 additions and 11 deletions

View File

@@ -2489,7 +2489,6 @@ static int pager_truncate(Pager *pPager, Pgno nPage){
}else if( (currentSize+szPage)<=newSize ){
char *pTmp = pPager->pTmpSpace;
memset(pTmp, 0, szPage);
testcase( (newSize-szPage) < currentSize );
testcase( (newSize-szPage) == currentSize );
testcase( (newSize-szPage) > currentSize );
rc = sqlite3OsWrite(pPager->fd, pTmp, szPage, newSize-szPage);
@@ -3089,9 +3088,6 @@ static int pagerPagecount(Pager *pPager, Pgno *pnPage){
}
}
nPage = (Pgno)((n+pPager->pageSize-1) / pPager->pageSize);
if( nPage==0 && n>0 ){
nPage = 1;
}
}
/* If the current number of pages in the file is greater than the