]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Remove an unused parameter from sqlite3VdbeIdxRowid(). This is cosmetic
authordrh <drh@noemail.net>
Tue, 16 Sep 2014 14:55:08 +0000 (14:55 +0000)
committerdrh <drh@noemail.net>
Tue, 16 Sep 2014 14:55:08 +0000 (14:55 +0000)
only as the C-compiler optimizers were already omitting this parameter on
amalgamation builds.

FossilOrigin-Name: a10a6bba4963761b490b7243b388dcc920c4cfed

manifest
manifest.uuid
src/vdbe.c
src/vdbeInt.h
src/vdbeaux.c

index 154cd1a0297ee81476abe84140795bb2397e6276..8c762d224fca2466fa1e3ddd6a96906431c9b2a3 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Reduce\sthe\snumber\sof\sarguments\sto\sRecordCompare\sfunctions\sfrom\s4\sto\s3,\nresulting\sin\sa\ssmall\sperformance\sincrease.
-D 2014-09-16T14:37:35.076
+C Remove\san\sunused\sparameter\sfrom\ssqlite3VdbeIdxRowid().\s\sThis\sis\scosmetic\nonly\sas\sthe\sC-compiler\soptimizers\swere\salready\somitting\sthis\sparameter\son\namalgamation\sbuilds.
+D 2014-09-16T14:55:08.312
 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
 F Makefile.in cf57f673d77606ab0f2d9627ca52a9ba1464146a
 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
@@ -288,11 +288,11 @@ F src/update.c 729f6f18fc27740591d085e1172cebe311144bf0
 F src/utf.c 77abb5e6d27f3d236e50f7c8fff1d00e15262359
 F src/util.c 4006c01772bd8d8ac4306d523bbcee41d3e392d8
 F src/vacuum.c 59f03f92bcff57faa6a8ca256eb29ccddfb0614a
-F src/vdbe.c 9a45dcbcc967fc0cb9248c75ba245d1d47de3e78
+F src/vdbe.c ae07ee84667c190d31946ae31c2fc63a3aa81a32
 F src/vdbe.h 09f5b4e3719fa454f252322b1cdab5cf1f361327
-F src/vdbeInt.h 0de8705e38b5f28808e37cebb9ec6df995ac3304
+F src/vdbeInt.h dc1743de339f5556cc6687219cf8727ad0d35f72
 F src/vdbeapi.c 4d2aa56efa1b4a010012466bf8e97dbf179081a6
-F src/vdbeaux.c d06769a7c1f8db9c04fe1457d357203a06684662
+F src/vdbeaux.c 79ce140ee79ecc7638eac070b48f1d24bbf9653c
 F src/vdbeblob.c 848238dc73e93e48432991bb5651bf87d865eca4
 F src/vdbemem.c 4d1e1398be24f85805196c20a80699be0699a9ca
 F src/vdbesort.c 09efa5e5098d1a159cd21f588eb118e4fe87cfde
@@ -1198,7 +1198,7 @@ F tool/vdbe_profile.tcl 67746953071a9f8f2f668b73fe899074e2c6d8c1
 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
 F tool/warnings.sh 0abfd78ceb09b7f7c27c688c8e3fe93268a13b32
 F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f
-P 0be3019ed794c10de67dfd645ceea7d45815bc4b
-R 4ac54fa45280398cdbf86b6ba8db7793
+P 8239c35aedd583af79505378bb7dbb78346a3f45
+R 8e31ee1c1cfa56f2cb381e2e177d1a9b
 U drh
-Z fba86109c421937fd36d2c7c73cc5fa1
+Z 717af3cbede201cebaf3af532573dee2
index d03654a7d8353ed06630a05697badecef522b483..1d2c86f0a089bdfcda8d744f2bec419a73b76469 100644 (file)
@@ -1 +1 @@
-8239c35aedd583af79505378bb7dbb78346a3f45
\ No newline at end of file
+a10a6bba4963761b490b7243b388dcc920c4cfed
\ No newline at end of file
index cc9e317e4b18318ec9a4c72827909d6eee0a14ce..b1764a12f406ef9c5c459368a86183a0fdc5237c 100644 (file)
@@ -4769,7 +4769,7 @@ case OP_IdxRowid: {              /* out2-prerelease */
   assert( pC->isTable==0 );
   if( !pC->nullRow ){
     rowid = 0;  /* Not needed.  Only used to silence a warning. */
-    rc = sqlite3VdbeIdxRowid(db, pCrsr, &rowid);
+    rc = sqlite3VdbeIdxRowid(pCrsr, &rowid);
     if( rc!=SQLITE_OK ){
       goto abort_due_to_error;
     }
index 5379d6b66723b9dc62f33a7c53390e3b6267fd60..14ae09130c463ff8f667baa0ce7f0e8058d6b6ef 100644 (file)
@@ -398,7 +398,7 @@ void sqlite3VdbeDeleteAuxData(Vdbe*, int, int);
 
 int sqlite2BtreeKeyCompare(BtCursor *, const void *, int, int, int *);
 int sqlite3VdbeIdxKeyCompare(VdbeCursor*,UnpackedRecord*,int*);
-int sqlite3VdbeIdxRowid(sqlite3*, BtCursor *, i64 *);
+int sqlite3VdbeIdxRowid(BtCursor *, i64 *);
 int sqlite3VdbeExec(Vdbe*);
 int sqlite3VdbeList(Vdbe*);
 int sqlite3VdbeHalt(Vdbe*);
index 5a0b33006085d2b87d3e90aff987c2236741e494..b7e3da7584e26299d91b5b79bbb2207f0c756ab9 100644 (file)
@@ -3876,7 +3876,7 @@ RecordCompare sqlite3VdbeFindCompare(UnpackedRecord *p){
 ** pCur might be pointing to text obtained from a corrupt database file.
 ** So the content cannot be trusted.  Do appropriate checks on the content.
 */
-int sqlite3VdbeIdxRowid(sqlite3 *db, BtCursor *pCur, i64 *rowid){
+int sqlite3VdbeIdxRowid(BtCursor *pCur, i64 *rowid){
   i64 nCellKey = 0;
   int rc;
   u32 szHdr;        /* Size of the header */
@@ -3884,8 +3884,6 @@ int sqlite3VdbeIdxRowid(sqlite3 *db, BtCursor *pCur, i64 *rowid){
   u32 lenRowid;     /* Size of the rowid */
   Mem m, v;
 
-  UNUSED_PARAMETER(db);
-
   /* Get the size of the index entry.  Only indices entries of less
   ** than 2GiB are support - anything large must be database corruption.
   ** Any corruption is detected in sqlite3BtreeParseCellPtr(), though, so