Fossil SCM
Removed some dead code.
Commit
4619c9a772bb23ee9ae7829fe0a1186cba2fee770c799169a10969bb96810c9c
Parent
57edd1814461ef2…
1 file changed
+4
-9
+4
-9
| --- src/fileedit.c | ||
| +++ src/fileedit.c | ||
| @@ -1665,11 +1665,10 @@ | ||
| 1665 | 1665 | end. This content will be |
| 1666 | 1666 | combined into a single JS |
| 1667 | 1667 | function call, thus each |
| 1668 | 1668 | entry must end with a |
| 1669 | 1669 | semicolon. */ |
| 1670 | - Stmt stmt = empty_Stmt; | |
| 1671 | 1670 | const char *zAjax = P("ajax"); |
| 1672 | 1671 | |
| 1673 | 1672 | if(0!=zAjax){ |
| 1674 | 1673 | if(0==strcmp("content",zAjax)){ |
| 1675 | 1674 | fileedit_ajax_content(); |
| @@ -2033,15 +2032,14 @@ | ||
| 2033 | 2032 | "and <code>checkin</code> URL arguments to this page.</li>"); |
| 2034 | 2033 | CX("</ul>"); |
| 2035 | 2034 | } |
| 2036 | 2035 | CX("</div>"/*#fileedit-tab-help*/); |
| 2037 | 2036 | |
| 2038 | - | |
| 2039 | 2037 | { |
| 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... */ | |
| 2043 | 2041 | blob_appendf(&endScript, |
| 2044 | 2042 | "window.addEventListener('load',"); |
| 2045 | 2043 | if(zRev && zFilename){ |
| 2046 | 2044 | assert(0==blob_size(&err)); |
| 2047 | 2045 | blob_appendf(&endScript, |
| @@ -2059,18 +2057,15 @@ | ||
| 2059 | 2057 | blob_appendf(&endScript,"}"); |
| 2060 | 2058 | } |
| 2061 | 2059 | blob_appendf(&endScript,", false);\n"); |
| 2062 | 2060 | } |
| 2063 | 2061 | |
| 2064 | - if(stmt.pStmt){ | |
| 2065 | - db_finalize(&stmt); | |
| 2066 | - } | |
| 2067 | 2062 | blob_reset(&err); |
| 2068 | 2063 | CheckinMiniInfo_cleanup(&cimi); |
| 2069 | 2064 | style_emit_script_fossil_bootstrap(0); |
| 2070 | 2065 | style_emit_script_fetch(0); |
| 2071 | - style_emit_script_tabs(0); | |
| 2066 | + style_emit_script_tabs(0)/*also emits fossil.dom*/; | |
| 2072 | 2067 | style_emit_script_confirmer(0); |
| 2073 | 2068 | style_emit_script_builtin(0, "fossil.page.fileedit.js"); |
| 2074 | 2069 | if(blob_size(&endScript)>0){ |
| 2075 | 2070 | style_emit_script_tag(0,0); |
| 2076 | 2071 | CX("(function(){\n"); |
| 2077 | 2072 |
| --- 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 |