Fossil SCM
Eliminate unnecessary variable.
Commit
aca2988fdbae169a15ac32747e605d1d243bb60186912648ee3ccb12a30c5d9b
Parent
3eaaa56583605cb…
1 file changed
+1
-3
+1
-3
| --- src/dispatch.c | ||
| +++ src/dispatch.c | ||
| @@ -1018,11 +1018,10 @@ | ||
| 1018 | 1018 | int isPage = 0; |
| 1019 | 1019 | const char *z; |
| 1020 | 1020 | const char *zCmdOrPage; |
| 1021 | 1021 | const CmdOrPage *pCmd = 0; |
| 1022 | 1022 | int useHtml = 0; |
| 1023 | - int fCmdsOnly = 0; | |
| 1024 | 1023 | Blob txt; |
| 1025 | 1024 | if( g.argc<3 ){ |
| 1026 | 1025 | z = g.argv[0]; |
| 1027 | 1026 | fossil_print( |
| 1028 | 1027 | "Usage: %s help TOPIC\n" |
| @@ -1055,16 +1054,15 @@ | ||
| 1055 | 1054 | } |
| 1056 | 1055 | else if( find_option("setting","s",0) ){ |
| 1057 | 1056 | command_list(0, CMDFLAG_SETTING); |
| 1058 | 1057 | return; |
| 1059 | 1058 | } |
| 1060 | - fCmdsOnly = find_option("commands","c",0)!=0; | |
| 1061 | 1059 | useHtml = find_option("html","h",0)!=0; |
| 1062 | 1060 | isPage = ('/' == *g.argv[2]) ? 1 : 0; |
| 1063 | 1061 | if(isPage){ |
| 1064 | 1062 | zCmdOrPage = "page"; |
| 1065 | - }else if( fCmdsOnly ){ | |
| 1063 | + }else if( find_option("commands","c",0)!=0 ){ | |
| 1066 | 1064 | mask = CMDFLAG_COMMAND; |
| 1067 | 1065 | zCmdOrPage = "command"; |
| 1068 | 1066 | }else{ |
| 1069 | 1067 | zCmdOrPage = "command or setting"; |
| 1070 | 1068 | } |
| 1071 | 1069 |
| --- src/dispatch.c | |
| +++ src/dispatch.c | |
| @@ -1018,11 +1018,10 @@ | |
| 1018 | int isPage = 0; |
| 1019 | const char *z; |
| 1020 | const char *zCmdOrPage; |
| 1021 | const CmdOrPage *pCmd = 0; |
| 1022 | int useHtml = 0; |
| 1023 | int fCmdsOnly = 0; |
| 1024 | Blob txt; |
| 1025 | if( g.argc<3 ){ |
| 1026 | z = g.argv[0]; |
| 1027 | fossil_print( |
| 1028 | "Usage: %s help TOPIC\n" |
| @@ -1055,16 +1054,15 @@ | |
| 1055 | } |
| 1056 | else if( find_option("setting","s",0) ){ |
| 1057 | command_list(0, CMDFLAG_SETTING); |
| 1058 | return; |
| 1059 | } |
| 1060 | fCmdsOnly = find_option("commands","c",0)!=0; |
| 1061 | useHtml = find_option("html","h",0)!=0; |
| 1062 | isPage = ('/' == *g.argv[2]) ? 1 : 0; |
| 1063 | if(isPage){ |
| 1064 | zCmdOrPage = "page"; |
| 1065 | }else if( fCmdsOnly ){ |
| 1066 | mask = CMDFLAG_COMMAND; |
| 1067 | zCmdOrPage = "command"; |
| 1068 | }else{ |
| 1069 | zCmdOrPage = "command or setting"; |
| 1070 | } |
| 1071 |
| --- src/dispatch.c | |
| +++ src/dispatch.c | |
| @@ -1018,11 +1018,10 @@ | |
| 1018 | int isPage = 0; |
| 1019 | const char *z; |
| 1020 | const char *zCmdOrPage; |
| 1021 | const CmdOrPage *pCmd = 0; |
| 1022 | int useHtml = 0; |
| 1023 | Blob txt; |
| 1024 | if( g.argc<3 ){ |
| 1025 | z = g.argv[0]; |
| 1026 | fossil_print( |
| 1027 | "Usage: %s help TOPIC\n" |
| @@ -1055,16 +1054,15 @@ | |
| 1054 | } |
| 1055 | else if( find_option("setting","s",0) ){ |
| 1056 | command_list(0, CMDFLAG_SETTING); |
| 1057 | return; |
| 1058 | } |
| 1059 | useHtml = find_option("html","h",0)!=0; |
| 1060 | isPage = ('/' == *g.argv[2]) ? 1 : 0; |
| 1061 | if(isPage){ |
| 1062 | zCmdOrPage = "page"; |
| 1063 | }else if( find_option("commands","c",0)!=0 ){ |
| 1064 | mask = CMDFLAG_COMMAND; |
| 1065 | zCmdOrPage = "command"; |
| 1066 | }else{ |
| 1067 | zCmdOrPage = "command or setting"; |
| 1068 | } |
| 1069 |