Fossil SCM

Remove a bunch of unused code.

drh 2010-10-14 18:48 trunk
Commit 62f8acbe731dfe4dd21e77e88bd516faa7aac742
2 files changed +2 -44 -30
+2 -44
--- src/config.h
+++ src/config.h
@@ -85,60 +85,18 @@
8585
#include "sqlite3.h"
8686
8787
/*
8888
** Typedef for a 64-bit integer
8989
*/
90
-typedef sqlite_int64 i64;
91
-typedef sqlite_uint64 u64;
90
+typedef sqlite3_int64 i64;
91
+typedef sqlite3_uint64 u64;
9292
9393
/*
9494
** Unsigned character type
9595
*/
9696
typedef unsigned char u8;
9797
98
-/*
99
-** Standard colors. These colors can also be changed using a stylesheet.
100
-*/
101
-
102
-/* A blue border and background. Used for the title bar and for dates
103
-** in a timeline.
104
-*/
105
-#define BORDER1 "#a0b5f4" /* Stylesheet class: border1 */
106
-#define BG1 "#d0d9f4" /* Stylesheet class: bkgnd1 */
107
-
108
-/* A red border and background. Use for releases in the timeline.
109
-*/
110
-#define BORDER2 "#ec9898" /* Stylesheet class: border2 */
111
-#define BG2 "#f7c0c0" /* Stylesheet class: bkgnd2 */
112
-
113
-/* A gray background. Used for column headers in the Wiki Table of Contents
114
-** and to highlight ticket properties.
115
-*/
116
-#define BG3 "#d0d0d0" /* Stylesheet class: bkgnd3 */
117
-
118
-/* A light-gray background. Used for title bar, menus, and rlog alternation
119
-*/
120
-#define BG4 "#f0f0f0" /* Stylesheet class: bkgnd4 */
121
-
122
-/* A deeper gray background. Used for branches
123
-*/
124
-#define BG5 "#dddddd" /* Stylesheet class: bkgnd5 */
125
-
126
-/* Default HTML page header */
127
-#define HEADER "<html>\n" \
128
- "<head>\n" \
129
- "<link rel=\"alternate\" type=\"application/rss+xml\"\n" \
130
- " title=\"%N Timeline Feed\" href=\"%B/timeline.rss\">\n" \
131
- "<title>%N: %T</title>\n</head>\n" \
132
- "<body bgcolor=\"white\">"
133
-
134
-/* Default HTML page footer */
135
-#define FOOTER "<div id=\"footer\"><small><small>\n" \
136
- "<a href=\"about\">Fossil version %V</a>\n" \
137
- "</small></small></div>\n" \
138
- "</body></html>\n"
139
-
14098
/* In the timeline, check-in messages are truncated at the first space
14199
** that is more than MX_CKIN_MSG from the beginning, or at the first
142100
** paragraph break that is more than MN_CKIN_MSG from the beginning.
143101
*/
144102
#define MN_CKIN_MSG 100
145103
--- src/config.h
+++ src/config.h
@@ -85,60 +85,18 @@
85 #include "sqlite3.h"
86
87 /*
88 ** Typedef for a 64-bit integer
89 */
90 typedef sqlite_int64 i64;
91 typedef sqlite_uint64 u64;
92
93 /*
94 ** Unsigned character type
95 */
96 typedef unsigned char u8;
97
98 /*
99 ** Standard colors. These colors can also be changed using a stylesheet.
100 */
101
102 /* A blue border and background. Used for the title bar and for dates
103 ** in a timeline.
104 */
105 #define BORDER1 "#a0b5f4" /* Stylesheet class: border1 */
106 #define BG1 "#d0d9f4" /* Stylesheet class: bkgnd1 */
107
108 /* A red border and background. Use for releases in the timeline.
109 */
110 #define BORDER2 "#ec9898" /* Stylesheet class: border2 */
111 #define BG2 "#f7c0c0" /* Stylesheet class: bkgnd2 */
112
113 /* A gray background. Used for column headers in the Wiki Table of Contents
114 ** and to highlight ticket properties.
115 */
116 #define BG3 "#d0d0d0" /* Stylesheet class: bkgnd3 */
117
118 /* A light-gray background. Used for title bar, menus, and rlog alternation
119 */
120 #define BG4 "#f0f0f0" /* Stylesheet class: bkgnd4 */
121
122 /* A deeper gray background. Used for branches
123 */
124 #define BG5 "#dddddd" /* Stylesheet class: bkgnd5 */
125
126 /* Default HTML page header */
127 #define HEADER "<html>\n" \
128 "<head>\n" \
129 "<link rel=\"alternate\" type=\"application/rss+xml\"\n" \
130 " title=\"%N Timeline Feed\" href=\"%B/timeline.rss\">\n" \
131 "<title>%N: %T</title>\n</head>\n" \
132 "<body bgcolor=\"white\">"
133
134 /* Default HTML page footer */
135 #define FOOTER "<div id=\"footer\"><small><small>\n" \
136 "<a href=\"about\">Fossil version %V</a>\n" \
137 "</small></small></div>\n" \
138 "</body></html>\n"
139
140 /* In the timeline, check-in messages are truncated at the first space
141 ** that is more than MX_CKIN_MSG from the beginning, or at the first
142 ** paragraph break that is more than MN_CKIN_MSG from the beginning.
143 */
144 #define MN_CKIN_MSG 100
145
--- src/config.h
+++ src/config.h
@@ -85,60 +85,18 @@
85 #include "sqlite3.h"
86
87 /*
88 ** Typedef for a 64-bit integer
89 */
90 typedef sqlite3_int64 i64;
91 typedef sqlite3_uint64 u64;
92
93 /*
94 ** Unsigned character type
95 */
96 typedef unsigned char u8;
97
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98 /* In the timeline, check-in messages are truncated at the first space
99 ** that is more than MX_CKIN_MSG from the beginning, or at the first
100 ** paragraph break that is more than MN_CKIN_MSG from the beginning.
101 */
102 #define MN_CKIN_MSG 100
103
-30
--- src/report.c
+++ src/report.c
@@ -583,39 +583,10 @@
583583
@ FROM ticket
584584
@ </pre></blockquote>
585585
@
586586
}
587587
588
-#if 0 /* NOT USED */
589
-static void column_header(int rn,const char *zCol, int nCol, int nSorted,
590
- const char *zDirection, const char *zExtra
591
-){
592
- int set = (nCol==nSorted);
593
- int desc = !strcmp(zDirection,"DESC");
594
-
595
- /*
596
- ** Clicking same column header 3 times in a row resets any sorting.
597
- ** Note that we link to rptview, which means embedded reports will get
598
- ** sent to the actual report view page as soon as a user tries to do
599
- ** any sorting. I don't see that as a Bad Thing.
600
- */
601
- if(set && desc){
602
- @ <th bgcolor="%s(BG1)" class="bkgnd1">
603
- @ <a href="rptview?rn=%d(rn)%s(zExtra)">%h(zCol)</a></th>
604
- }else{
605
- if(set){
606
- @ <th bgcolor="%s(BG1)" class="bkgnd1"><a
607
- }else{
608
- @ <th><a
609
- }
610
- @ href="rptview?rn=%d(rn)&amp;order_by=%d(nCol)&amp;\
611
- @ order_dir=%s(desc?"ASC":"DESC")\
612
- @ %s(zExtra)">%h(zCol)</a></th>
613
- }
614
-}
615
-#endif
616
-
617588
/*
618589
** The state of the report generation.
619590
*/
620591
struct GenerateHTML {
621592
int rn; /* Report number */
@@ -1105,6 +1076,5 @@
11051076
sqlite3_set_authorizer(g.db, 0, 0);
11061077
if( zFilter ){
11071078
free(zSql);
11081079
}
11091080
}
1110
-
11111081
--- src/report.c
+++ src/report.c
@@ -583,39 +583,10 @@
583 @ FROM ticket
584 @ </pre></blockquote>
585 @
586 }
587
588 #if 0 /* NOT USED */
589 static void column_header(int rn,const char *zCol, int nCol, int nSorted,
590 const char *zDirection, const char *zExtra
591 ){
592 int set = (nCol==nSorted);
593 int desc = !strcmp(zDirection,"DESC");
594
595 /*
596 ** Clicking same column header 3 times in a row resets any sorting.
597 ** Note that we link to rptview, which means embedded reports will get
598 ** sent to the actual report view page as soon as a user tries to do
599 ** any sorting. I don't see that as a Bad Thing.
600 */
601 if(set && desc){
602 @ <th bgcolor="%s(BG1)" class="bkgnd1">
603 @ <a href="rptview?rn=%d(rn)%s(zExtra)">%h(zCol)</a></th>
604 }else{
605 if(set){
606 @ <th bgcolor="%s(BG1)" class="bkgnd1"><a
607 }else{
608 @ <th><a
609 }
610 @ href="rptview?rn=%d(rn)&amp;order_by=%d(nCol)&amp;\
611 @ order_dir=%s(desc?"ASC":"DESC")\
612 @ %s(zExtra)">%h(zCol)</a></th>
613 }
614 }
615 #endif
616
617 /*
618 ** The state of the report generation.
619 */
620 struct GenerateHTML {
621 int rn; /* Report number */
@@ -1105,6 +1076,5 @@
1105 sqlite3_set_authorizer(g.db, 0, 0);
1106 if( zFilter ){
1107 free(zSql);
1108 }
1109 }
1110
1111
--- src/report.c
+++ src/report.c
@@ -583,39 +583,10 @@
583 @ FROM ticket
584 @ </pre></blockquote>
585 @
586 }
587
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
588 /*
589 ** The state of the report generation.
590 */
591 struct GenerateHTML {
592 int rn; /* Report number */
@@ -1105,6 +1076,5 @@
1076 sqlite3_set_authorizer(g.db, 0, 0);
1077 if( zFilter ){
1078 free(zSql);
1079 }
1080 }
 
1081

Keyboard Shortcuts

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