Fossil SCM
Remove some dead code from the web timeline.
Commit
cbc41ff4c9cf38ff73e67a8eccddacdecc52cdc4
Parent
c89200831173ed8…
1 file changed
+6
-28
+6
-28
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -45,38 +45,16 @@ | ||
| 45 | 45 | |
| 46 | 46 | /* |
| 47 | 47 | ** Generate a hyperlink to a version. |
| 48 | 48 | */ |
| 49 | 49 | void hyperlink_to_uuid(const char *zUuid){ |
| 50 | - char zShortUuid[UUID_SIZE+1]; | |
| 51 | - shorten_uuid(zShortUuid, zUuid); | |
| 52 | - if( g.okHistory ){ | |
| 53 | - @ <a class="timelineHistLink" href="%s(g.zTop)/info/%s(zShortUuid)"> | |
| 54 | - @ [%s(zShortUuid)]</a> | |
| 55 | - }else{ | |
| 56 | - @ <span class="timelineHistDsp">[%s(zShortUuid)]</span> | |
| 57 | - } | |
| 58 | -} | |
| 59 | - | |
| 60 | -/* | |
| 61 | -** Generate a hyperlink that invokes javascript to highlight | |
| 62 | -** a version on mouseover. | |
| 63 | -*/ | |
| 64 | -void hyperlink_to_uuid_with_mouseover( | |
| 65 | - const char *zUuid, /* The UUID to display */ | |
| 66 | - const char *zIn, /* Javascript proc for mouseover */ | |
| 67 | - const char *zOut, /* Javascript proc for mouseout */ | |
| 68 | - int id /* Argument to javascript procs */ | |
| 69 | -){ | |
| 70 | - char zShortUuid[UUID_SIZE+1]; | |
| 71 | - shorten_uuid(zShortUuid, zUuid); | |
| 72 | - if( g.okHistory ){ | |
| 73 | - @ <a onmouseover='%s(zIn)("m%d(id)")' onmouseout='%s(zOut)("m%d(id)")' | |
| 74 | - @ href="%s(g.zTop)/vinfo/%s(zShortUuid)">[%s(zShortUuid)]</a> | |
| 75 | - }else{ | |
| 76 | - @ <b onmouseover='%s(zIn)("m%d(id)")' onmouseout='%s(zOut)("m%d(id)")'> | |
| 77 | - @ [%s(zShortUuid)]</b> | |
| 50 | + char z[UUID_SIZE+1]; | |
| 51 | + shorten_uuid(z, zUuid); | |
| 52 | + if( g.okHistory ){ | |
| 53 | + @ <a class="timelineHistLink" href="%s(g.zTop)/info/%s(z)">[%s(z)]</a> | |
| 54 | + }else{ | |
| 55 | + @ <span class="timelineHistDsp">[%s(z)]</span> | |
| 78 | 56 | } |
| 79 | 57 | } |
| 80 | 58 | |
| 81 | 59 | /* |
| 82 | 60 | ** Generate a hyperlink to a diff between two versions. |
| 83 | 61 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -45,38 +45,16 @@ | |
| 45 | |
| 46 | /* |
| 47 | ** Generate a hyperlink to a version. |
| 48 | */ |
| 49 | void hyperlink_to_uuid(const char *zUuid){ |
| 50 | char zShortUuid[UUID_SIZE+1]; |
| 51 | shorten_uuid(zShortUuid, zUuid); |
| 52 | if( g.okHistory ){ |
| 53 | @ <a class="timelineHistLink" href="%s(g.zTop)/info/%s(zShortUuid)"> |
| 54 | @ [%s(zShortUuid)]</a> |
| 55 | }else{ |
| 56 | @ <span class="timelineHistDsp">[%s(zShortUuid)]</span> |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | /* |
| 61 | ** Generate a hyperlink that invokes javascript to highlight |
| 62 | ** a version on mouseover. |
| 63 | */ |
| 64 | void hyperlink_to_uuid_with_mouseover( |
| 65 | const char *zUuid, /* The UUID to display */ |
| 66 | const char *zIn, /* Javascript proc for mouseover */ |
| 67 | const char *zOut, /* Javascript proc for mouseout */ |
| 68 | int id /* Argument to javascript procs */ |
| 69 | ){ |
| 70 | char zShortUuid[UUID_SIZE+1]; |
| 71 | shorten_uuid(zShortUuid, zUuid); |
| 72 | if( g.okHistory ){ |
| 73 | @ <a onmouseover='%s(zIn)("m%d(id)")' onmouseout='%s(zOut)("m%d(id)")' |
| 74 | @ href="%s(g.zTop)/vinfo/%s(zShortUuid)">[%s(zShortUuid)]</a> |
| 75 | }else{ |
| 76 | @ <b onmouseover='%s(zIn)("m%d(id)")' onmouseout='%s(zOut)("m%d(id)")'> |
| 77 | @ [%s(zShortUuid)]</b> |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | /* |
| 82 | ** Generate a hyperlink to a diff between two versions. |
| 83 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -45,38 +45,16 @@ | |
| 45 | |
| 46 | /* |
| 47 | ** Generate a hyperlink to a version. |
| 48 | */ |
| 49 | void hyperlink_to_uuid(const char *zUuid){ |
| 50 | char z[UUID_SIZE+1]; |
| 51 | shorten_uuid(z, zUuid); |
| 52 | if( g.okHistory ){ |
| 53 | @ <a class="timelineHistLink" href="%s(g.zTop)/info/%s(z)">[%s(z)]</a> |
| 54 | }else{ |
| 55 | @ <span class="timelineHistDsp">[%s(z)]</span> |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | /* |
| 60 | ** Generate a hyperlink to a diff between two versions. |
| 61 |