Fossil SCM

Removed some dead code.

stephan 2020-05-14 04:14 fileedit-ajaxify
Commit 4619c9a772bb23ee9ae7829fe0a1186cba2fee770c799169a10969bb96810c9c
1 file changed +4 -9
+4 -9
--- src/fileedit.c
+++ src/fileedit.c
@@ -1665,11 +1665,10 @@
16651665
end. This content will be
16661666
combined into a single JS
16671667
function call, thus each
16681668
entry must end with a
16691669
semicolon. */
1670
- Stmt stmt = empty_Stmt;
16711670
const char *zAjax = P("ajax");
16721671
16731672
if(0!=zAjax){
16741673
if(0==strcmp("content",zAjax)){
16751674
fileedit_ajax_content();
@@ -2033,15 +2032,14 @@
20332032
"and <code>checkin</code> URL arguments to this page.</li>");
20342033
CX("</ul>");
20352034
}
20362035
CX("</div>"/*#fileedit-tab-help*/);
20372036
2038
-
20392037
{
2040
- /* Dynamically populate the editor, display a any error
2041
- ** in the err blob, and/or switch to tab #0, where the file
2042
- ** selector lives... */
2038
+ /* Dynamically populate the editor, display any error in the err
2039
+ ** blob, and/or switch to tab #0, where the file selector
2040
+ ** lives... */
20432041
blob_appendf(&endScript,
20442042
"window.addEventListener('load',");
20452043
if(zRev && zFilename){
20462044
assert(0==blob_size(&err));
20472045
blob_appendf(&endScript,
@@ -2059,18 +2057,15 @@
20592057
blob_appendf(&endScript,"}");
20602058
}
20612059
blob_appendf(&endScript,", false);\n");
20622060
}
20632061
2064
- if(stmt.pStmt){
2065
- db_finalize(&stmt);
2066
- }
20672062
blob_reset(&err);
20682063
CheckinMiniInfo_cleanup(&cimi);
20692064
style_emit_script_fossil_bootstrap(0);
20702065
style_emit_script_fetch(0);
2071
- style_emit_script_tabs(0);
2066
+ style_emit_script_tabs(0)/*also emits fossil.dom*/;
20722067
style_emit_script_confirmer(0);
20732068
style_emit_script_builtin(0, "fossil.page.fileedit.js");
20742069
if(blob_size(&endScript)>0){
20752070
style_emit_script_tag(0,0);
20762071
CX("(function(){\n");
20772072
--- src/fileedit.c
+++ src/fileedit.c
@@ -1665,11 +1665,10 @@
1665 end. This content will be
1666 combined into a single JS
1667 function call, thus each
1668 entry must end with a
1669 semicolon. */
1670 Stmt stmt = empty_Stmt;
1671 const char *zAjax = P("ajax");
1672
1673 if(0!=zAjax){
1674 if(0==strcmp("content",zAjax)){
1675 fileedit_ajax_content();
@@ -2033,15 +2032,14 @@
2033 "and <code>checkin</code> URL arguments to this page.</li>");
2034 CX("</ul>");
2035 }
2036 CX("</div>"/*#fileedit-tab-help*/);
2037
2038
2039 {
2040 /* Dynamically populate the editor, display a any error
2041 ** in the err blob, and/or switch to tab #0, where the file
2042 ** selector lives... */
2043 blob_appendf(&endScript,
2044 "window.addEventListener('load',");
2045 if(zRev && zFilename){
2046 assert(0==blob_size(&err));
2047 blob_appendf(&endScript,
@@ -2059,18 +2057,15 @@
2059 blob_appendf(&endScript,"}");
2060 }
2061 blob_appendf(&endScript,", false);\n");
2062 }
2063
2064 if(stmt.pStmt){
2065 db_finalize(&stmt);
2066 }
2067 blob_reset(&err);
2068 CheckinMiniInfo_cleanup(&cimi);
2069 style_emit_script_fossil_bootstrap(0);
2070 style_emit_script_fetch(0);
2071 style_emit_script_tabs(0);
2072 style_emit_script_confirmer(0);
2073 style_emit_script_builtin(0, "fossil.page.fileedit.js");
2074 if(blob_size(&endScript)>0){
2075 style_emit_script_tag(0,0);
2076 CX("(function(){\n");
2077
--- src/fileedit.c
+++ src/fileedit.c
@@ -1665,11 +1665,10 @@
1665 end. This content will be
1666 combined into a single JS
1667 function call, thus each
1668 entry must end with a
1669 semicolon. */
 
1670 const char *zAjax = P("ajax");
1671
1672 if(0!=zAjax){
1673 if(0==strcmp("content",zAjax)){
1674 fileedit_ajax_content();
@@ -2033,15 +2032,14 @@
2032 "and <code>checkin</code> URL arguments to this page.</li>");
2033 CX("</ul>");
2034 }
2035 CX("</div>"/*#fileedit-tab-help*/);
2036
 
2037 {
2038 /* Dynamically populate the editor, display any error in the err
2039 ** blob, and/or switch to tab #0, where the file selector
2040 ** lives... */
2041 blob_appendf(&endScript,
2042 "window.addEventListener('load',");
2043 if(zRev && zFilename){
2044 assert(0==blob_size(&err));
2045 blob_appendf(&endScript,
@@ -2059,18 +2057,15 @@
2057 blob_appendf(&endScript,"}");
2058 }
2059 blob_appendf(&endScript,", false);\n");
2060 }
2061
 
 
 
2062 blob_reset(&err);
2063 CheckinMiniInfo_cleanup(&cimi);
2064 style_emit_script_fossil_bootstrap(0);
2065 style_emit_script_fetch(0);
2066 style_emit_script_tabs(0)/*also emits fossil.dom*/;
2067 style_emit_script_confirmer(0);
2068 style_emit_script_builtin(0, "fossil.page.fileedit.js");
2069 if(blob_size(&endScript)>0){
2070 style_emit_script_tag(0,0);
2071 CX("(function(){\n");
2072

Keyboard Shortcuts

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