Fossil SCM

Remove some dead code from the web timeline.

drh 2011-01-14 20:54 trunk
Commit cbc41ff4c9cf38ff73e67a8eccddacdecc52cdc4
1 file changed +6 -28
+6 -28
--- src/timeline.c
+++ src/timeline.c
@@ -45,38 +45,16 @@
4545
4646
/*
4747
** Generate a hyperlink to a version.
4848
*/
4949
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>
7856
}
7957
}
8058
8159
/*
8260
** Generate a hyperlink to a diff between two versions.
8361
--- 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

Keyboard Shortcuts

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