Fossil SCM
Remove a bunch of unused code.
Commit
62f8acbe731dfe4dd21e77e88bd516faa7aac742
Parent
585360b47dad738…
2 files changed
+2
-44
-30
+2
-44
| --- src/config.h | ||
| +++ src/config.h | ||
| @@ -85,60 +85,18 @@ | ||
| 85 | 85 | #include "sqlite3.h" |
| 86 | 86 | |
| 87 | 87 | /* |
| 88 | 88 | ** Typedef for a 64-bit integer |
| 89 | 89 | */ |
| 90 | -typedef sqlite_int64 i64; | |
| 91 | -typedef sqlite_uint64 u64; | |
| 90 | +typedef sqlite3_int64 i64; | |
| 91 | +typedef sqlite3_uint64 u64; | |
| 92 | 92 | |
| 93 | 93 | /* |
| 94 | 94 | ** Unsigned character type |
| 95 | 95 | */ |
| 96 | 96 | typedef unsigned char u8; |
| 97 | 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 | 98 | /* In the timeline, check-in messages are truncated at the first space |
| 141 | 99 | ** that is more than MX_CKIN_MSG from the beginning, or at the first |
| 142 | 100 | ** paragraph break that is more than MN_CKIN_MSG from the beginning. |
| 143 | 101 | */ |
| 144 | 102 | #define MN_CKIN_MSG 100 |
| 145 | 103 |
| --- 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 @@ | ||
| 583 | 583 | @ FROM ticket |
| 584 | 584 | @ </pre></blockquote> |
| 585 | 585 | @ |
| 586 | 586 | } |
| 587 | 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)&order_by=%d(nCol)&\ | |
| 611 | - @ order_dir=%s(desc?"ASC":"DESC")\ | |
| 612 | - @ %s(zExtra)">%h(zCol)</a></th> | |
| 613 | - } | |
| 614 | -} | |
| 615 | -#endif | |
| 616 | - | |
| 617 | 588 | /* |
| 618 | 589 | ** The state of the report generation. |
| 619 | 590 | */ |
| 620 | 591 | struct GenerateHTML { |
| 621 | 592 | int rn; /* Report number */ |
| @@ -1105,6 +1076,5 @@ | ||
| 1105 | 1076 | sqlite3_set_authorizer(g.db, 0, 0); |
| 1106 | 1077 | if( zFilter ){ |
| 1107 | 1078 | free(zSql); |
| 1108 | 1079 | } |
| 1109 | 1080 | } |
| 1110 | - | |
| 1111 | 1081 |
| --- 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)&order_by=%d(nCol)&\ |
| 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 |