Fossil SCM
Remove unused "#if 0...#endif" code from finfo.c.
Commit
563d481e6a186df22480e703f7b907942a2b7172598946f3723cc44eb37ca874
Parent
cf1960e913fc45e…
1 file changed
-17
-17
| --- src/finfo.c | ||
| +++ src/finfo.c | ||
| @@ -313,17 +313,10 @@ | ||
| 313 | 313 | int uBg = P("ubg")!=0; |
| 314 | 314 | int fDebug = atoi(PD("debug","0")); |
| 315 | 315 | int fShowId = P("showid")!=0; |
| 316 | 316 | Stmt qparent; |
| 317 | 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 | 318 | int tmFlags = 0; /* Viewing mode */ |
| 326 | 319 | const char *zStyle; /* Viewing mode name */ |
| 327 | 320 | |
| 328 | 321 | login_check_credentials(); |
| 329 | 322 | if( !g.perm.Read ){ login_needed(g.anon.Read); return; } |
| @@ -344,20 +337,10 @@ | ||
| 344 | 337 | if( uBg ) url_add_parameter(&url, "ubg", 0); |
| 345 | 338 | baseCheckin = name_to_rid_www("ci"); |
| 346 | 339 | zPrevDate[0] = 0; |
| 347 | 340 | zFilename = PD("name",""); |
| 348 | 341 | 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 | 342 | fnid = db_int(0, "SELECT fnid FROM filename WHERE name=%Q", zFilename); |
| 360 | 343 | if( fnid==0 ){ |
| 361 | 344 | @ No such file: %h(zFilename) |
| 362 | 345 | style_footer(); |
| 363 | 346 | return; |
| 364 | 347 |
| --- 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 |