Fossil SCM
Remove obsolete code - unused and commented out since 2019. No functional changes.
Commit
7517845c7c4609aa8d13a3125cfb8811767c1211bab8992592dc64312467ee1c
Parent
633ea7343f68c90…
1 file changed
-62
-62
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -1368,72 +1368,10 @@ | ||
| 1368 | 1368 | webpage_error("Artifact %s is not a check-in.", P(zParam)); |
| 1369 | 1369 | return 0; |
| 1370 | 1370 | } |
| 1371 | 1371 | return manifest_get(rid, CFTYPE_MANIFEST, 0); |
| 1372 | 1372 | } |
| 1373 | - | |
| 1374 | -#if 0 /* not used */ | |
| 1375 | -/* | |
| 1376 | -** Output a description of a check-in | |
| 1377 | -*/ | |
| 1378 | -static void checkin_description(int rid){ | |
| 1379 | - Stmt q; | |
| 1380 | - db_prepare(&q, | |
| 1381 | - "SELECT datetime(mtime), coalesce(euser,user)," | |
| 1382 | - " coalesce(ecomment,comment), uuid," | |
| 1383 | - " (SELECT group_concat(substr(tagname,5), ', ') FROM tag, tagxref" | |
| 1384 | - " WHERE tagname GLOB 'sym-*' AND tag.tagid=tagxref.tagid" | |
| 1385 | - " AND tagxref.rid=blob.rid AND tagxref.tagtype>0)" | |
| 1386 | - " FROM event, blob" | |
| 1387 | - " WHERE event.objid=%d AND type='ci'" | |
| 1388 | - " AND blob.rid=%d", | |
| 1389 | - rid, rid | |
| 1390 | - ); | |
| 1391 | - while( db_step(&q)==SQLITE_ROW ){ | |
| 1392 | - const char *zDate = db_column_text(&q, 0); | |
| 1393 | - const char *zUser = db_column_text(&q, 1); | |
| 1394 | - const char *zUuid = db_column_text(&q, 3); | |
| 1395 | - const char *zTagList = db_column_text(&q, 4); | |
| 1396 | - Blob comment; | |
| 1397 | - int wikiFlags = WIKI_INLINE|WIKI_NOBADLINKS; | |
| 1398 | - if( db_get_boolean("timeline-block-markup", 0)==0 ){ | |
| 1399 | - wikiFlags |= WIKI_NOBLOCK; | |
| 1400 | - } | |
| 1401 | - hyperlink_to_version(zUuid); | |
| 1402 | - blob_zero(&comment); | |
| 1403 | - db_column_blob(&q, 2, &comment); | |
| 1404 | - wiki_convert(&comment, 0, wikiFlags); | |
| 1405 | - blob_reset(&comment); | |
| 1406 | - @ (user: | |
| 1407 | - hyperlink_to_user(zUser,zDate,","); | |
| 1408 | - if( zTagList && zTagList[0] && g.perm.Hyperlink ){ | |
| 1409 | - int i; | |
| 1410 | - const char *z = zTagList; | |
| 1411 | - Blob links; | |
| 1412 | - blob_zero(&links); | |
| 1413 | - while( z && z[0] ){ | |
| 1414 | - for(i=0; z[i] && (z[i]!=',' || z[i+1]!=' '); i++){} | |
| 1415 | - blob_appendf(&links, | |
| 1416 | - "%z%#h</a>%.2s", | |
| 1417 | - href("%R/timeline?r=%#t&nd&c=%t",i,z,zDate), i,z, &z[i] | |
| 1418 | - ); | |
| 1419 | - if( z[i]==0 ) break; | |
| 1420 | - z += i+2; | |
| 1421 | - } | |
| 1422 | - @ tags: %s(blob_str(&links)), | |
| 1423 | - blob_reset(&links); | |
| 1424 | - }else{ | |
| 1425 | - @ tags: %h(zTagList), | |
| 1426 | - } | |
| 1427 | - @ date: | |
| 1428 | - hyperlink_to_date(zDate, ")"); | |
| 1429 | - tag_private_status(rid); | |
| 1430 | - } | |
| 1431 | - db_finalize(&q); | |
| 1432 | -} | |
| 1433 | -#endif /* not used */ | |
| 1434 | - | |
| 1435 | 1373 | |
| 1436 | 1374 | /* |
| 1437 | 1375 | ** WEBPAGE: vdiff |
| 1438 | 1376 | ** URL: /vdiff?from=TAG&to=TAG |
| 1439 | 1377 | ** |
| 1440 | 1378 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -1368,72 +1368,10 @@ | |
| 1368 | webpage_error("Artifact %s is not a check-in.", P(zParam)); |
| 1369 | return 0; |
| 1370 | } |
| 1371 | return manifest_get(rid, CFTYPE_MANIFEST, 0); |
| 1372 | } |
| 1373 | |
| 1374 | #if 0 /* not used */ |
| 1375 | /* |
| 1376 | ** Output a description of a check-in |
| 1377 | */ |
| 1378 | static void checkin_description(int rid){ |
| 1379 | Stmt q; |
| 1380 | db_prepare(&q, |
| 1381 | "SELECT datetime(mtime), coalesce(euser,user)," |
| 1382 | " coalesce(ecomment,comment), uuid," |
| 1383 | " (SELECT group_concat(substr(tagname,5), ', ') FROM tag, tagxref" |
| 1384 | " WHERE tagname GLOB 'sym-*' AND tag.tagid=tagxref.tagid" |
| 1385 | " AND tagxref.rid=blob.rid AND tagxref.tagtype>0)" |
| 1386 | " FROM event, blob" |
| 1387 | " WHERE event.objid=%d AND type='ci'" |
| 1388 | " AND blob.rid=%d", |
| 1389 | rid, rid |
| 1390 | ); |
| 1391 | while( db_step(&q)==SQLITE_ROW ){ |
| 1392 | const char *zDate = db_column_text(&q, 0); |
| 1393 | const char *zUser = db_column_text(&q, 1); |
| 1394 | const char *zUuid = db_column_text(&q, 3); |
| 1395 | const char *zTagList = db_column_text(&q, 4); |
| 1396 | Blob comment; |
| 1397 | int wikiFlags = WIKI_INLINE|WIKI_NOBADLINKS; |
| 1398 | if( db_get_boolean("timeline-block-markup", 0)==0 ){ |
| 1399 | wikiFlags |= WIKI_NOBLOCK; |
| 1400 | } |
| 1401 | hyperlink_to_version(zUuid); |
| 1402 | blob_zero(&comment); |
| 1403 | db_column_blob(&q, 2, &comment); |
| 1404 | wiki_convert(&comment, 0, wikiFlags); |
| 1405 | blob_reset(&comment); |
| 1406 | @ (user: |
| 1407 | hyperlink_to_user(zUser,zDate,","); |
| 1408 | if( zTagList && zTagList[0] && g.perm.Hyperlink ){ |
| 1409 | int i; |
| 1410 | const char *z = zTagList; |
| 1411 | Blob links; |
| 1412 | blob_zero(&links); |
| 1413 | while( z && z[0] ){ |
| 1414 | for(i=0; z[i] && (z[i]!=',' || z[i+1]!=' '); i++){} |
| 1415 | blob_appendf(&links, |
| 1416 | "%z%#h</a>%.2s", |
| 1417 | href("%R/timeline?r=%#t&nd&c=%t",i,z,zDate), i,z, &z[i] |
| 1418 | ); |
| 1419 | if( z[i]==0 ) break; |
| 1420 | z += i+2; |
| 1421 | } |
| 1422 | @ tags: %s(blob_str(&links)), |
| 1423 | blob_reset(&links); |
| 1424 | }else{ |
| 1425 | @ tags: %h(zTagList), |
| 1426 | } |
| 1427 | @ date: |
| 1428 | hyperlink_to_date(zDate, ")"); |
| 1429 | tag_private_status(rid); |
| 1430 | } |
| 1431 | db_finalize(&q); |
| 1432 | } |
| 1433 | #endif /* not used */ |
| 1434 | |
| 1435 | |
| 1436 | /* |
| 1437 | ** WEBPAGE: vdiff |
| 1438 | ** URL: /vdiff?from=TAG&to=TAG |
| 1439 | ** |
| 1440 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -1368,72 +1368,10 @@ | |
| 1368 | webpage_error("Artifact %s is not a check-in.", P(zParam)); |
| 1369 | return 0; |
| 1370 | } |
| 1371 | return manifest_get(rid, CFTYPE_MANIFEST, 0); |
| 1372 | } |
| 1373 | |
| 1374 | /* |
| 1375 | ** WEBPAGE: vdiff |
| 1376 | ** URL: /vdiff?from=TAG&to=TAG |
| 1377 | ** |
| 1378 |