Fossil SCM
Make the "fossil cache" command an accessory that only shows up when doing "fossil help --all". Remove unused variables from the implementation.
Commit
c7194b668b8ce417c6a84f8c285bc7b08c45d3fe
Parent
450b62ff3afde2a…
1 file changed
+1
-3
+1
-3
| --- src/cache.c | ||
| +++ src/cache.c | ||
| @@ -138,11 +138,10 @@ | ||
| 138 | 138 | ** be deleted. |
| 139 | 139 | */ |
| 140 | 140 | void cache_write(Blob *pContent, const char *zKey){ |
| 141 | 141 | sqlite3 *db; |
| 142 | 142 | sqlite3_stmt *pStmt; |
| 143 | - int blobId = 0; | |
| 144 | 143 | int rc = 0; |
| 145 | 144 | int nKeep; |
| 146 | 145 | |
| 147 | 146 | db = cacheOpen(0); |
| 148 | 147 | if( db==0 ) return; |
| @@ -195,11 +194,10 @@ | ||
| 195 | 194 | ** (2) The requested element is not in the cache |
| 196 | 195 | */ |
| 197 | 196 | int cache_read(Blob *pContent, const char *zKey){ |
| 198 | 197 | sqlite3 *db; |
| 199 | 198 | sqlite3_stmt *pStmt; |
| 200 | - int blobId = 0; | |
| 201 | 199 | int rc = 0; |
| 202 | 200 | |
| 203 | 201 | db = cacheOpen(0); |
| 204 | 202 | if( db==0 ) return 0; |
| 205 | 203 | sqlite3_busy_timeout(db, 10000); |
| @@ -228,11 +226,11 @@ | ||
| 228 | 226 | sqlite3_close(db); |
| 229 | 227 | return rc; |
| 230 | 228 | } |
| 231 | 229 | |
| 232 | 230 | /* |
| 233 | -** COMMAND: cache | |
| 231 | +** COMMAND: cache* | |
| 234 | 232 | ** Usage: %fossil cache SUBCOMMAND |
| 235 | 233 | ** |
| 236 | 234 | ** Manage the cache used for potentially expensive web pages such as |
| 237 | 235 | ** /zip and /tarball. SUBCOMMAND an be: |
| 238 | 236 | ** |
| 239 | 237 |
| --- src/cache.c | |
| +++ src/cache.c | |
| @@ -138,11 +138,10 @@ | |
| 138 | ** be deleted. |
| 139 | */ |
| 140 | void cache_write(Blob *pContent, const char *zKey){ |
| 141 | sqlite3 *db; |
| 142 | sqlite3_stmt *pStmt; |
| 143 | int blobId = 0; |
| 144 | int rc = 0; |
| 145 | int nKeep; |
| 146 | |
| 147 | db = cacheOpen(0); |
| 148 | if( db==0 ) return; |
| @@ -195,11 +194,10 @@ | |
| 195 | ** (2) The requested element is not in the cache |
| 196 | */ |
| 197 | int cache_read(Blob *pContent, const char *zKey){ |
| 198 | sqlite3 *db; |
| 199 | sqlite3_stmt *pStmt; |
| 200 | int blobId = 0; |
| 201 | int rc = 0; |
| 202 | |
| 203 | db = cacheOpen(0); |
| 204 | if( db==0 ) return 0; |
| 205 | sqlite3_busy_timeout(db, 10000); |
| @@ -228,11 +226,11 @@ | |
| 228 | sqlite3_close(db); |
| 229 | return rc; |
| 230 | } |
| 231 | |
| 232 | /* |
| 233 | ** COMMAND: cache |
| 234 | ** Usage: %fossil cache SUBCOMMAND |
| 235 | ** |
| 236 | ** Manage the cache used for potentially expensive web pages such as |
| 237 | ** /zip and /tarball. SUBCOMMAND an be: |
| 238 | ** |
| 239 |
| --- src/cache.c | |
| +++ src/cache.c | |
| @@ -138,11 +138,10 @@ | |
| 138 | ** be deleted. |
| 139 | */ |
| 140 | void cache_write(Blob *pContent, const char *zKey){ |
| 141 | sqlite3 *db; |
| 142 | sqlite3_stmt *pStmt; |
| 143 | int rc = 0; |
| 144 | int nKeep; |
| 145 | |
| 146 | db = cacheOpen(0); |
| 147 | if( db==0 ) return; |
| @@ -195,11 +194,10 @@ | |
| 194 | ** (2) The requested element is not in the cache |
| 195 | */ |
| 196 | int cache_read(Blob *pContent, const char *zKey){ |
| 197 | sqlite3 *db; |
| 198 | sqlite3_stmt *pStmt; |
| 199 | int rc = 0; |
| 200 | |
| 201 | db = cacheOpen(0); |
| 202 | if( db==0 ) return 0; |
| 203 | sqlite3_busy_timeout(db, 10000); |
| @@ -228,11 +226,11 @@ | |
| 226 | sqlite3_close(db); |
| 227 | return rc; |
| 228 | } |
| 229 | |
| 230 | /* |
| 231 | ** COMMAND: cache* |
| 232 | ** Usage: %fossil cache SUBCOMMAND |
| 233 | ** |
| 234 | ** Manage the cache used for potentially expensive web pages such as |
| 235 | ** /zip and /tarball. SUBCOMMAND an be: |
| 236 | ** |
| 237 |