aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-10-08 02:44:42 +0000
committerdrh <drh@noemail.net>2015-10-08 02:44:42 +0000
commitd7fd6aa4ba568e33e9879f94a8542fba0d7be828 (patch)
tree8b7dbe0237e2405faea400fd44d50091ded6a635 /src
parent98e713bb8d8870ecf9bf18c6cc1d791d888f2963 (diff)
downloadsqlite-d7fd6aa4ba568e33e9879f94a8542fba0d7be828.tar.gz
sqlite-d7fd6aa4ba568e33e9879f94a8542fba0d7be828.zip
Remove two unused lines of code - discovered by scan-build.
FossilOrigin-Name: 77b707b77496a08703fe9405e8e4521a4e5b419e
Diffstat (limited to 'src')
-rw-r--r--src/vtab.c2
-rw-r--r--src/whereexpr.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/vtab.c b/src/vtab.c
index cc293e806..6054df3d7 100644
--- a/src/vtab.c
+++ b/src/vtab.c
@@ -1145,7 +1145,7 @@ int sqlite3VtabEponymousTableInit(Parse *pParse, Module *pMod){
*/
void sqlite3VtabEponymousTableClear(sqlite3 *db, Module *pMod){
Table *pTab = pMod->pEpoTab;
- if( (pTab = pMod->pEpoTab)!=0 ){
+ if( pTab!=0 ){
sqlite3DeleteColumnNames(db, pTab);
sqlite3VtabClear(db, pTab);
sqlite3DbFree(db, pTab);
diff --git a/src/whereexpr.c b/src/whereexpr.c
index dff425d0e..fadde7901 100644
--- a/src/whereexpr.c
+++ b/src/whereexpr.c
@@ -950,7 +950,6 @@ static void exprAnalyze(
pNew = pTerm;
}
exprCommute(pParse, pDup);
- pLeft = sqlite3ExprSkipCollate(pDup->pLeft);
pNew->leftCursor = iCur;
pNew->u.leftColumn = iColumn;
testcase( (prereqLeft | extraRight) != prereqLeft );