Fossil SCM

eliminate unused variables

jan.nijtmans 2017-11-30 11:50 trunk
Commit c699e9fedf918eb8fa37ec92efc8d55bc03f923c0d30107c63cfb5c899a7d5e6
1 file changed +4 -2
+4 -2
--- src/finfo.c
+++ src/finfo.c
@@ -313,15 +313,17 @@
313313
int uBg = P("ubg")!=0;
314314
int fDebug = atoi(PD("debug","0"));
315315
int fShowId = P("showid")!=0;
316316
Stmt qparent;
317317
int iTableId = timeline_tableid();
318
+#if 0
318319
int bHashBeforeComment = 0; /* Show hash before the comment */
319320
int bHashInDetail = 0; /* Show the hash inside the detail section */
320321
int bShowDetail; /* Show the detail section */
321322
int bSeparateDetail; /* Detail section in a separate column */
322323
int eCommentFormat; /* value for timeline-comment-format */
324
+#endif
323325
int tmFlags = 0; /* Viewing mode */
324326
const char *zStyle; /* Viewing mode name */
325327
326328
login_check_credentials();
327329
if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
@@ -345,11 +347,11 @@
345347
zFilename = PD("name","");
346348
cookie_render();
347349
#if 0
348350
eCommentFormat = db_get_int("timeline-comment-format", 4);
349351
bShowDetail = (eCommentFormat & 1)==0; /* Bit 0 suppresses the comment */
350
- bSeparateDetail = (eCommentFormat & 8)!=0;
352
+ bSeparateDetail = (eCommentFormat & 8)!=0;
351353
switch( (eCommentFormat>>1)&3 ){
352354
case 1: bHashAfterComment = 1; break;
353355
case 2: bHashInDetail = 1; break;
354356
default: bHashBeforeComment = 1; break;
355357
}
@@ -664,11 +666,11 @@
664666
**
665667
** Show all MLINK table entries for a particular file, or for
666668
** a particular check-in.
667669
**
668670
** This screen is intended for use by Fossil developers to help
669
-** in debugging Fossil itself. Ordinary Fossil users are not
671
+** in debugging Fossil itself. Ordinary Fossil users are not
670672
** expected to know what the MLINK table is or why it is important.
671673
**
672674
** To avoid confusing ordinary users, this page is only available
673675
** to adminstrators.
674676
*/
675677
--- src/finfo.c
+++ src/finfo.c
@@ -313,15 +313,17 @@
313 int uBg = P("ubg")!=0;
314 int fDebug = atoi(PD("debug","0"));
315 int fShowId = P("showid")!=0;
316 Stmt qparent;
317 int iTableId = timeline_tableid();
 
318 int bHashBeforeComment = 0; /* Show hash before the comment */
319 int bHashInDetail = 0; /* Show the hash inside the detail section */
320 int bShowDetail; /* Show the detail section */
321 int bSeparateDetail; /* Detail section in a separate column */
322 int eCommentFormat; /* value for timeline-comment-format */
 
323 int tmFlags = 0; /* Viewing mode */
324 const char *zStyle; /* Viewing mode name */
325
326 login_check_credentials();
327 if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
@@ -345,11 +347,11 @@
345 zFilename = PD("name","");
346 cookie_render();
347 #if 0
348 eCommentFormat = db_get_int("timeline-comment-format", 4);
349 bShowDetail = (eCommentFormat & 1)==0; /* Bit 0 suppresses the comment */
350 bSeparateDetail = (eCommentFormat & 8)!=0;
351 switch( (eCommentFormat>>1)&3 ){
352 case 1: bHashAfterComment = 1; break;
353 case 2: bHashInDetail = 1; break;
354 default: bHashBeforeComment = 1; break;
355 }
@@ -664,11 +666,11 @@
664 **
665 ** Show all MLINK table entries for a particular file, or for
666 ** a particular check-in.
667 **
668 ** This screen is intended for use by Fossil developers to help
669 ** in debugging Fossil itself. Ordinary Fossil users are not
670 ** expected to know what the MLINK table is or why it is important.
671 **
672 ** To avoid confusing ordinary users, this page is only available
673 ** to adminstrators.
674 */
675
--- src/finfo.c
+++ src/finfo.c
@@ -313,15 +313,17 @@
313 int uBg = P("ubg")!=0;
314 int fDebug = atoi(PD("debug","0"));
315 int fShowId = P("showid")!=0;
316 Stmt qparent;
317 int iTableId = timeline_tableid();
318 #if 0
319 int bHashBeforeComment = 0; /* Show hash before the comment */
320 int bHashInDetail = 0; /* Show the hash inside the detail section */
321 int bShowDetail; /* Show the detail section */
322 int bSeparateDetail; /* Detail section in a separate column */
323 int eCommentFormat; /* value for timeline-comment-format */
324 #endif
325 int tmFlags = 0; /* Viewing mode */
326 const char *zStyle; /* Viewing mode name */
327
328 login_check_credentials();
329 if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
@@ -345,11 +347,11 @@
347 zFilename = PD("name","");
348 cookie_render();
349 #if 0
350 eCommentFormat = db_get_int("timeline-comment-format", 4);
351 bShowDetail = (eCommentFormat & 1)==0; /* Bit 0 suppresses the comment */
352 bSeparateDetail = (eCommentFormat & 8)!=0;
353 switch( (eCommentFormat>>1)&3 ){
354 case 1: bHashAfterComment = 1; break;
355 case 2: bHashInDetail = 1; break;
356 default: bHashBeforeComment = 1; break;
357 }
@@ -664,11 +666,11 @@
666 **
667 ** Show all MLINK table entries for a particular file, or for
668 ** a particular check-in.
669 **
670 ** This screen is intended for use by Fossil developers to help
671 ** in debugging Fossil itself. Ordinary Fossil users are not
672 ** expected to know what the MLINK table is or why it is important.
673 **
674 ** To avoid confusing ordinary users, this page is only available
675 ** to adminstrators.
676 */
677

Keyboard Shortcuts

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