Fossil SCM
Remove unused variables from timeline.c. Like [b76ce3d5f1c329] but omits the change to th_tcl.c.
Commit
0b9371365dd44345b9214908f4c43619663fc28e
Parent
35474aff2f38ccd…
1 file changed
-3
-3
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -1312,11 +1312,10 @@ | ||
| 1312 | 1312 | zFree = sqlite3_mprintf("[%.10s] %s%s", zUuid, zPrefix, zCom); |
| 1313 | 1313 | nLine += comment_print(zFree, 9, 79); |
| 1314 | 1314 | sqlite3_free(zFree); |
| 1315 | 1315 | |
| 1316 | 1316 | if(showfiles){ |
| 1317 | - int inUl = 0; | |
| 1318 | 1317 | if( !fchngQueryInit ){ |
| 1319 | 1318 | db_prepare(&fchngQuery, |
| 1320 | 1319 | "SELECT (pid==0) AS isnew," |
| 1321 | 1320 | " (fid==0) AS isdel," |
| 1322 | 1321 | " (SELECT name FROM filename WHERE fnid=mlink.fnid) AS name," |
| @@ -1331,12 +1330,10 @@ | ||
| 1331 | 1330 | db_bind_int(&fchngQuery, ":mid", rid); |
| 1332 | 1331 | while( db_step(&fchngQuery)==SQLITE_ROW ){ |
| 1333 | 1332 | const char *zFilename = db_column_text(&fchngQuery, 2); |
| 1334 | 1333 | int isNew = db_column_int(&fchngQuery, 0); |
| 1335 | 1334 | int isDel = db_column_int(&fchngQuery, 1); |
| 1336 | - const char *zOld = db_column_text(&fchngQuery, 4); | |
| 1337 | - const char *zNew = db_column_text(&fchngQuery, 3); | |
| 1338 | 1335 | if( isNew ){ |
| 1339 | 1336 | fossil_print(" ADDED %s\n",zFilename); |
| 1340 | 1337 | }else if( isDel ){ |
| 1341 | 1338 | fossil_print(" DELETED %s\n",zFilename); |
| 1342 | 1339 | }else{ |
| 1343 | 1340 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -1312,11 +1312,10 @@ | |
| 1312 | zFree = sqlite3_mprintf("[%.10s] %s%s", zUuid, zPrefix, zCom); |
| 1313 | nLine += comment_print(zFree, 9, 79); |
| 1314 | sqlite3_free(zFree); |
| 1315 | |
| 1316 | if(showfiles){ |
| 1317 | int inUl = 0; |
| 1318 | if( !fchngQueryInit ){ |
| 1319 | db_prepare(&fchngQuery, |
| 1320 | "SELECT (pid==0) AS isnew," |
| 1321 | " (fid==0) AS isdel," |
| 1322 | " (SELECT name FROM filename WHERE fnid=mlink.fnid) AS name," |
| @@ -1331,12 +1330,10 @@ | |
| 1331 | db_bind_int(&fchngQuery, ":mid", rid); |
| 1332 | while( db_step(&fchngQuery)==SQLITE_ROW ){ |
| 1333 | const char *zFilename = db_column_text(&fchngQuery, 2); |
| 1334 | int isNew = db_column_int(&fchngQuery, 0); |
| 1335 | int isDel = db_column_int(&fchngQuery, 1); |
| 1336 | const char *zOld = db_column_text(&fchngQuery, 4); |
| 1337 | const char *zNew = db_column_text(&fchngQuery, 3); |
| 1338 | if( isNew ){ |
| 1339 | fossil_print(" ADDED %s\n",zFilename); |
| 1340 | }else if( isDel ){ |
| 1341 | fossil_print(" DELETED %s\n",zFilename); |
| 1342 | }else{ |
| 1343 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -1312,11 +1312,10 @@ | |
| 1312 | zFree = sqlite3_mprintf("[%.10s] %s%s", zUuid, zPrefix, zCom); |
| 1313 | nLine += comment_print(zFree, 9, 79); |
| 1314 | sqlite3_free(zFree); |
| 1315 | |
| 1316 | if(showfiles){ |
| 1317 | if( !fchngQueryInit ){ |
| 1318 | db_prepare(&fchngQuery, |
| 1319 | "SELECT (pid==0) AS isnew," |
| 1320 | " (fid==0) AS isdel," |
| 1321 | " (SELECT name FROM filename WHERE fnid=mlink.fnid) AS name," |
| @@ -1331,12 +1330,10 @@ | |
| 1330 | db_bind_int(&fchngQuery, ":mid", rid); |
| 1331 | while( db_step(&fchngQuery)==SQLITE_ROW ){ |
| 1332 | const char *zFilename = db_column_text(&fchngQuery, 2); |
| 1333 | int isNew = db_column_int(&fchngQuery, 0); |
| 1334 | int isDel = db_column_int(&fchngQuery, 1); |
| 1335 | if( isNew ){ |
| 1336 | fossil_print(" ADDED %s\n",zFilename); |
| 1337 | }else if( isDel ){ |
| 1338 | fossil_print(" DELETED %s\n",zFilename); |
| 1339 | }else{ |
| 1340 |