Fossil SCM

Remove unused "#if 0...#endif" code from finfo.c.

drh 2017-11-30 12:57 trunk
Commit 563d481e6a186df22480e703f7b907942a2b7172598946f3723cc44eb37ca874
1 file changed -17
-17
--- src/finfo.c
+++ src/finfo.c
@@ -313,17 +313,10 @@
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
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
325318
int tmFlags = 0; /* Viewing mode */
326319
const char *zStyle; /* Viewing mode name */
327320
328321
login_check_credentials();
329322
if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
@@ -344,20 +337,10 @@
344337
if( uBg ) url_add_parameter(&url, "ubg", 0);
345338
baseCheckin = name_to_rid_www("ci");
346339
zPrevDate[0] = 0;
347340
zFilename = PD("name","");
348341
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
- }
358
-#endif
359342
fnid = db_int(0, "SELECT fnid FROM filename WHERE name=%Q", zFilename);
360343
if( fnid==0 ){
361344
@ No such file: %h(zFilename)
362345
style_footer();
363346
return;
364347
--- src/finfo.c
+++ src/finfo.c
@@ -313,17 +313,10 @@
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; }
@@ -344,20 +337,10 @@
344 if( uBg ) url_add_parameter(&url, "ubg", 0);
345 baseCheckin = name_to_rid_www("ci");
346 zPrevDate[0] = 0;
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 }
358 #endif
359 fnid = db_int(0, "SELECT fnid FROM filename WHERE name=%Q", zFilename);
360 if( fnid==0 ){
361 @ No such file: %h(zFilename)
362 style_footer();
363 return;
364
--- src/finfo.c
+++ src/finfo.c
@@ -313,17 +313,10 @@
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 tmFlags = 0; /* Viewing mode */
319 const char *zStyle; /* Viewing mode name */
320
321 login_check_credentials();
322 if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
@@ -344,20 +337,10 @@
337 if( uBg ) url_add_parameter(&url, "ubg", 0);
338 baseCheckin = name_to_rid_www("ci");
339 zPrevDate[0] = 0;
340 zFilename = PD("name","");
341 cookie_render();
 
 
 
 
 
 
 
 
 
 
342 fnid = db_int(0, "SELECT fnid FROM filename WHERE name=%Q", zFilename);
343 if( fnid==0 ){
344 @ No such file: %h(zFilename)
345 style_footer();
346 return;
347

Keyboard Shortcuts

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