Fossil SCM

Removed a test/debug #if block which i accidentally left enabled in [73e28dd718].

stephan 2011-09-29 13:08 UTC json
Commit 5ddfe3d6630e137d170ef38dd684883fedb47782
1 file changed -6
--- src/json_wiki.c
+++ src/json_wiki.c
@@ -209,17 +209,11 @@
209209
/*
210210
** Implementation of /json/wiki/save.
211211
*/
212212
static cson_value * json_wiki_save(){
213213
char const createIfNotExists = json_getenv_bool("createIfNotExists",0);
214
-#if 0
215214
return json_wiki_create_or_save(0,createIfNotExists);
216
-#else
217
- cson_value * v = json_wiki_create_or_save(0,createIfNotExists);
218
- cson_object * o = cson_value_get_object(v);
219
- cson_object_set(o,"createIfNotExists", cson_value_new_bool(createIfNotExists));
220
-#endif
221215
}
222216
223217
/*
224218
** Implementation of /json/wiki/list.
225219
*/
226220
--- src/json_wiki.c
+++ src/json_wiki.c
@@ -209,17 +209,11 @@
209 /*
210 ** Implementation of /json/wiki/save.
211 */
212 static cson_value * json_wiki_save(){
213 char const createIfNotExists = json_getenv_bool("createIfNotExists",0);
214 #if 0
215 return json_wiki_create_or_save(0,createIfNotExists);
216 #else
217 cson_value * v = json_wiki_create_or_save(0,createIfNotExists);
218 cson_object * o = cson_value_get_object(v);
219 cson_object_set(o,"createIfNotExists", cson_value_new_bool(createIfNotExists));
220 #endif
221 }
222
223 /*
224 ** Implementation of /json/wiki/list.
225 */
226
--- src/json_wiki.c
+++ src/json_wiki.c
@@ -209,17 +209,11 @@
209 /*
210 ** Implementation of /json/wiki/save.
211 */
212 static cson_value * json_wiki_save(){
213 char const createIfNotExists = json_getenv_bool("createIfNotExists",0);
 
214 return json_wiki_create_or_save(0,createIfNotExists);
 
 
 
 
 
215 }
216
217 /*
218 ** Implementation of /json/wiki/list.
219 */
220

Keyboard Shortcuts

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