Fossil SCM

Make the "fossil cache" command an accessory that only shows up when doing "fossil help --all". Remove unused variables from the implementation.

drh 2014-04-25 21:18 trunk
Commit c7194b668b8ce417c6a84f8c285bc7b08c45d3fe
1 file changed +1 -3
+1 -3
--- src/cache.c
+++ src/cache.c
@@ -138,11 +138,10 @@
138138
** be deleted.
139139
*/
140140
void cache_write(Blob *pContent, const char *zKey){
141141
sqlite3 *db;
142142
sqlite3_stmt *pStmt;
143
- int blobId = 0;
144143
int rc = 0;
145144
int nKeep;
146145
147146
db = cacheOpen(0);
148147
if( db==0 ) return;
@@ -195,11 +194,10 @@
195194
** (2) The requested element is not in the cache
196195
*/
197196
int cache_read(Blob *pContent, const char *zKey){
198197
sqlite3 *db;
199198
sqlite3_stmt *pStmt;
200
- int blobId = 0;
201199
int rc = 0;
202200
203201
db = cacheOpen(0);
204202
if( db==0 ) return 0;
205203
sqlite3_busy_timeout(db, 10000);
@@ -228,11 +226,11 @@
228226
sqlite3_close(db);
229227
return rc;
230228
}
231229
232230
/*
233
-** COMMAND: cache
231
+** COMMAND: cache*
234232
** Usage: %fossil cache SUBCOMMAND
235233
**
236234
** Manage the cache used for potentially expensive web pages such as
237235
** /zip and /tarball. SUBCOMMAND an be:
238236
**
239237
--- 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

Keyboard Shortcuts

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