Fossil SCM

Remove unused variables from timeline.c. Like [b76ce3d5f1c329] but omits the change to th_tcl.c.

drh 2011-08-29 13:35 trunk
Commit 0b9371365dd44345b9214908f4c43619663fc28e
1 file changed -3
--- src/timeline.c
+++ src/timeline.c
@@ -1312,11 +1312,10 @@
13121312
zFree = sqlite3_mprintf("[%.10s] %s%s", zUuid, zPrefix, zCom);
13131313
nLine += comment_print(zFree, 9, 79);
13141314
sqlite3_free(zFree);
13151315
13161316
if(showfiles){
1317
- int inUl = 0;
13181317
if( !fchngQueryInit ){
13191318
db_prepare(&fchngQuery,
13201319
"SELECT (pid==0) AS isnew,"
13211320
" (fid==0) AS isdel,"
13221321
" (SELECT name FROM filename WHERE fnid=mlink.fnid) AS name,"
@@ -1331,12 +1330,10 @@
13311330
db_bind_int(&fchngQuery, ":mid", rid);
13321331
while( db_step(&fchngQuery)==SQLITE_ROW ){
13331332
const char *zFilename = db_column_text(&fchngQuery, 2);
13341333
int isNew = db_column_int(&fchngQuery, 0);
13351334
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);
13381335
if( isNew ){
13391336
fossil_print(" ADDED %s\n",zFilename);
13401337
}else if( isDel ){
13411338
fossil_print(" DELETED %s\n",zFilename);
13421339
}else{
13431340
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button