diff options
author | drh <drh@noemail.net> | 2011-03-06 21:28:32 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2011-03-06 21:28:32 +0000 |
commit | c126e63e4fda95f47ffe1cb294b5417c7a46c223 (patch) | |
tree | 65b7a94b2892db277a1111c79ae476b444767043 /src/insert.c | |
parent | d7255a207eab440617f4603b016350f075a9bf8b (diff) | |
download | sqlite-c126e63e4fda95f47ffe1cb294b5417c7a46c223.tar.gz sqlite-c126e63e4fda95f47ffe1cb294b5417c7a46c223.zip |
Remove dead code identified by the clang static analyzer.
FossilOrigin-Name: 01a79d5a7af48fb7e50291c0c7c6283d3fb359d0
Diffstat (limited to 'src/insert.c')
-rw-r--r-- | src/insert.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/insert.c b/src/insert.c index adf6ef2ed..851f778d4 100644 --- a/src/insert.c +++ b/src/insert.c @@ -465,7 +465,6 @@ void sqlite3Insert( int regIns; /* Block of regs holding rowid+data being inserted */ int regRowid; /* registers holding insert rowid */ int regData; /* register holding first column to insert */ - int regRecord; /* Holds the assemblied row record */ int regEof = 0; /* Register recording end of SELECT data */ int *aRegIdx = 0; /* One register allocated to each index */ @@ -794,7 +793,6 @@ void sqlite3Insert( /* Allocate registers for holding the rowid of the new row, ** the content of the new row, and the assemblied row record. */ - regRecord = ++pParse->nMem; regRowid = regIns = pParse->nMem+1; pParse->nMem += pTab->nCol + 1; if( IsVirtual(pTab) ){ @@ -1188,7 +1186,7 @@ void sqlite3GenerateConstraintChecks( case OE_Rollback: case OE_Fail: { char *zMsg; - j1 = sqlite3VdbeAddOp3(v, OP_HaltIfNull, + sqlite3VdbeAddOp3(v, OP_HaltIfNull, SQLITE_CONSTRAINT, onError, regData+i); zMsg = sqlite3MPrintf(pParse->db, "%s.%s may not be NULL", pTab->zName, pTab->aCol[i].zName); |