Fossil SCM
Remove an unused function from the timeline logic.
Commit
50376e4b3693ce858cdb6388903bae8054d406a1e1150fe73ab0a743ac879b25
Parent
eed877c0a50e023…
1 file changed
-17
-17
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -1254,25 +1254,10 @@ | ||
| 1254 | 1254 | @ FROM event CROSS JOIN blob |
| 1255 | 1255 | @ WHERE blob.rid=event.objid |
| 1256 | 1256 | ; |
| 1257 | 1257 | return zBase; |
| 1258 | 1258 | } |
| 1259 | - | |
| 1260 | -/* | |
| 1261 | -** Generate a submenu element with a single parameter change. | |
| 1262 | -*/ | |
| 1263 | -static void timeline_submenu( | |
| 1264 | - HQuery *pUrl, /* Base URL */ | |
| 1265 | - const char *zMenuName, /* Submenu name */ | |
| 1266 | - const char *zParam, /* Parameter value to add or change */ | |
| 1267 | - const char *zValue, /* Value of the new parameter */ | |
| 1268 | - const char *zRemove /* Parameter to omit */ | |
| 1269 | -){ | |
| 1270 | - style_submenu_element(zMenuName, "%s", | |
| 1271 | - url_render(pUrl, zParam, zValue, zRemove, 0)); | |
| 1272 | -} | |
| 1273 | - | |
| 1274 | 1259 | |
| 1275 | 1260 | /* |
| 1276 | 1261 | ** Convert a symbolic name used as an argument to the a=, b=, or c= |
| 1277 | 1262 | ** query parameters of timeline into a julianday mtime value. |
| 1278 | 1263 | */ |
| @@ -2250,11 +2235,10 @@ | ||
| 2250 | 2235 | if( db_int(0, |
| 2251 | 2236 | "SELECT EXISTS (SELECT 1 FROM event CROSS JOIN blob" |
| 2252 | 2237 | " WHERE blob.rid=event.objid AND mtime<=%.17g%s)", |
| 2253 | 2238 | rDate-ONE_SECOND, blob_sql_text(&cond)) |
| 2254 | 2239 | ){ |
| 2255 | - /* timeline_submenu(&url, "Older", "b", zDate, "a"); */ | |
| 2256 | 2240 | zOlderButton = fossil_strdup(url_render(&url, "b", zDate, "a", 0)); |
| 2257 | 2241 | } |
| 2258 | 2242 | free(zDate); |
| 2259 | 2243 | } |
| 2260 | 2244 | zDate = db_text(0, "SELECT max(timestamp) FROM timeline /*scan*/"); |
| @@ -2266,11 +2250,10 @@ | ||
| 2266 | 2250 | if( db_int(0, |
| 2267 | 2251 | "SELECT EXISTS (SELECT 1 FROM event CROSS JOIN blob" |
| 2268 | 2252 | " WHERE blob.rid=event.objid AND mtime>=%.17g%s)", |
| 2269 | 2253 | rDate+ONE_SECOND, blob_sql_text(&cond)) |
| 2270 | 2254 | ){ |
| 2271 | - /* timeline_submenu(&url, "Newer", "a", zDate, "b"); */ | |
| 2272 | 2255 | zNewerButton = fossil_strdup(url_render(&url, "a", zDate, "b", 0)); |
| 2273 | 2256 | } |
| 2274 | 2257 | free(zDate); |
| 2275 | 2258 | } |
| 2276 | 2259 | if( zType[0]=='a' || zType[0]=='c' ){ |
| 2277 | 2260 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -1254,25 +1254,10 @@ | |
| 1254 | @ FROM event CROSS JOIN blob |
| 1255 | @ WHERE blob.rid=event.objid |
| 1256 | ; |
| 1257 | return zBase; |
| 1258 | } |
| 1259 | |
| 1260 | /* |
| 1261 | ** Generate a submenu element with a single parameter change. |
| 1262 | */ |
| 1263 | static void timeline_submenu( |
| 1264 | HQuery *pUrl, /* Base URL */ |
| 1265 | const char *zMenuName, /* Submenu name */ |
| 1266 | const char *zParam, /* Parameter value to add or change */ |
| 1267 | const char *zValue, /* Value of the new parameter */ |
| 1268 | const char *zRemove /* Parameter to omit */ |
| 1269 | ){ |
| 1270 | style_submenu_element(zMenuName, "%s", |
| 1271 | url_render(pUrl, zParam, zValue, zRemove, 0)); |
| 1272 | } |
| 1273 | |
| 1274 | |
| 1275 | /* |
| 1276 | ** Convert a symbolic name used as an argument to the a=, b=, or c= |
| 1277 | ** query parameters of timeline into a julianday mtime value. |
| 1278 | */ |
| @@ -2250,11 +2235,10 @@ | |
| 2250 | if( db_int(0, |
| 2251 | "SELECT EXISTS (SELECT 1 FROM event CROSS JOIN blob" |
| 2252 | " WHERE blob.rid=event.objid AND mtime<=%.17g%s)", |
| 2253 | rDate-ONE_SECOND, blob_sql_text(&cond)) |
| 2254 | ){ |
| 2255 | /* timeline_submenu(&url, "Older", "b", zDate, "a"); */ |
| 2256 | zOlderButton = fossil_strdup(url_render(&url, "b", zDate, "a", 0)); |
| 2257 | } |
| 2258 | free(zDate); |
| 2259 | } |
| 2260 | zDate = db_text(0, "SELECT max(timestamp) FROM timeline /*scan*/"); |
| @@ -2266,11 +2250,10 @@ | |
| 2266 | if( db_int(0, |
| 2267 | "SELECT EXISTS (SELECT 1 FROM event CROSS JOIN blob" |
| 2268 | " WHERE blob.rid=event.objid AND mtime>=%.17g%s)", |
| 2269 | rDate+ONE_SECOND, blob_sql_text(&cond)) |
| 2270 | ){ |
| 2271 | /* timeline_submenu(&url, "Newer", "a", zDate, "b"); */ |
| 2272 | zNewerButton = fossil_strdup(url_render(&url, "a", zDate, "b", 0)); |
| 2273 | } |
| 2274 | free(zDate); |
| 2275 | } |
| 2276 | if( zType[0]=='a' || zType[0]=='c' ){ |
| 2277 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -1254,25 +1254,10 @@ | |
| 1254 | @ FROM event CROSS JOIN blob |
| 1255 | @ WHERE blob.rid=event.objid |
| 1256 | ; |
| 1257 | return zBase; |
| 1258 | } |
| 1259 | |
| 1260 | /* |
| 1261 | ** Convert a symbolic name used as an argument to the a=, b=, or c= |
| 1262 | ** query parameters of timeline into a julianday mtime value. |
| 1263 | */ |
| @@ -2250,11 +2235,10 @@ | |
| 2235 | if( db_int(0, |
| 2236 | "SELECT EXISTS (SELECT 1 FROM event CROSS JOIN blob" |
| 2237 | " WHERE blob.rid=event.objid AND mtime<=%.17g%s)", |
| 2238 | rDate-ONE_SECOND, blob_sql_text(&cond)) |
| 2239 | ){ |
| 2240 | zOlderButton = fossil_strdup(url_render(&url, "b", zDate, "a", 0)); |
| 2241 | } |
| 2242 | free(zDate); |
| 2243 | } |
| 2244 | zDate = db_text(0, "SELECT max(timestamp) FROM timeline /*scan*/"); |
| @@ -2266,11 +2250,10 @@ | |
| 2250 | if( db_int(0, |
| 2251 | "SELECT EXISTS (SELECT 1 FROM event CROSS JOIN blob" |
| 2252 | " WHERE blob.rid=event.objid AND mtime>=%.17g%s)", |
| 2253 | rDate+ONE_SECOND, blob_sql_text(&cond)) |
| 2254 | ){ |
| 2255 | zNewerButton = fossil_strdup(url_render(&url, "a", zDate, "b", 0)); |
| 2256 | } |
| 2257 | free(zDate); |
| 2258 | } |
| 2259 | if( zType[0]=='a' || zType[0]=='c' ){ |
| 2260 |