Fossil SCM

Omit unused variables in the timeline generator.

drh 2025-10-16 23:55 timeline-enhance-2025
Commit d5cff12464bde6d5c5be91b675f87b755e35df3d4c1200b601ed429fad8f3f79
1 file changed +2 -2
+2 -2
--- src/timeline.c
+++ src/timeline.c
@@ -186,16 +186,16 @@
186186
const char *zThisUser, /* Suppress links to this user */
187187
const char *zThisTag /* Suppress links to this tag */
188188
){
189189
int rid = db_column_int(pQuery, 0);
190190
const char *zUuid = db_column_text(pQuery, 1);
191
- int isLeaf = db_column_int(pQuery, 5);
191
+ /* int isLeaf = db_column_int(pQuery, 5); // not used */
192192
const char *zDate = db_column_text(pQuery, 2);
193193
const char *zType = db_column_text(pQuery, 7);
194194
const char *zUser = db_column_text(pQuery, 4);
195195
const char *zTagList = db_column_text(pQuery, 8);
196
- int tagid = db_column_int(pQuery, 9);
196
+ /* int tagid = db_column_int(pQuery, 9); // not used */
197197
const char *zDispUser = zUser && zUser[0] ? zUser : "anonymous";
198198
199199
if( (tmFlags & (TIMELINE_CLASSIC|TIMELINE_VERBOSE|TIMELINE_COMPACT))!=0 ){
200200
cgi_printf("(");
201201
}
202202
--- src/timeline.c
+++ src/timeline.c
@@ -186,16 +186,16 @@
186 const char *zThisUser, /* Suppress links to this user */
187 const char *zThisTag /* Suppress links to this tag */
188 ){
189 int rid = db_column_int(pQuery, 0);
190 const char *zUuid = db_column_text(pQuery, 1);
191 int isLeaf = db_column_int(pQuery, 5);
192 const char *zDate = db_column_text(pQuery, 2);
193 const char *zType = db_column_text(pQuery, 7);
194 const char *zUser = db_column_text(pQuery, 4);
195 const char *zTagList = db_column_text(pQuery, 8);
196 int tagid = db_column_int(pQuery, 9);
197 const char *zDispUser = zUser && zUser[0] ? zUser : "anonymous";
198
199 if( (tmFlags & (TIMELINE_CLASSIC|TIMELINE_VERBOSE|TIMELINE_COMPACT))!=0 ){
200 cgi_printf("(");
201 }
202
--- src/timeline.c
+++ src/timeline.c
@@ -186,16 +186,16 @@
186 const char *zThisUser, /* Suppress links to this user */
187 const char *zThisTag /* Suppress links to this tag */
188 ){
189 int rid = db_column_int(pQuery, 0);
190 const char *zUuid = db_column_text(pQuery, 1);
191 /* int isLeaf = db_column_int(pQuery, 5); // not used */
192 const char *zDate = db_column_text(pQuery, 2);
193 const char *zType = db_column_text(pQuery, 7);
194 const char *zUser = db_column_text(pQuery, 4);
195 const char *zTagList = db_column_text(pQuery, 8);
196 /* int tagid = db_column_int(pQuery, 9); // not used */
197 const char *zDispUser = zUser && zUser[0] ? zUser : "anonymous";
198
199 if( (tmFlags & (TIMELINE_CLASSIC|TIMELINE_VERBOSE|TIMELINE_COMPACT))!=0 ){
200 cgi_printf("(");
201 }
202

Keyboard Shortcuts

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