Commit 29fb4faf authored by Mark Andrews's avatar Mark Andrews
Browse files

remove dead code

parent d0f0298f
Pipeline #7145 passed with stages
in 13 minutes and 27 seconds
...@@ -14416,7 +14416,6 @@ named_server_nta(named_server_t *server, isc_lex_t *lex, ...@@ -14416,7 +14416,6 @@ named_server_nta(named_server_t *server, isc_lex_t *lex,
bool ttlset = false, excl = false, viewfound = false; bool ttlset = false, excl = false, viewfound = false;
dns_rdataclass_t rdclass = dns_rdataclass_in; dns_rdataclass_t rdclass = dns_rdataclass_in;
bool first = true; bool first = true;
bool is_option = true;
UNUSED(force); UNUSED(force);
...@@ -14436,10 +14435,8 @@ named_server_nta(named_server_t *server, isc_lex_t *lex, ...@@ -14436,10 +14435,8 @@ named_server_nta(named_server_t *server, isc_lex_t *lex,
return (ISC_R_UNEXPECTEDEND); return (ISC_R_UNEXPECTEDEND);
} }
if (!is_option) { if (strcmp(ptr, "--") == 0) {
nametext = ptr; break;
} else if (strcmp(ptr, "--") == 0) {
is_option = false;
} else if (argcheck(ptr, "dump")) { } else if (argcheck(ptr, "dump")) {
dump = true; dump = true;
} else if (argcheck(ptr, "remove")) { } else if (argcheck(ptr, "remove")) {
...@@ -14526,7 +14523,7 @@ named_server_nta(named_server_t *server, isc_lex_t *lex, ...@@ -14526,7 +14523,7 @@ named_server_nta(named_server_t *server, isc_lex_t *lex,
CHECK(ISC_R_FAILURE); CHECK(ISC_R_FAILURE);
} }
/* Get the NTA name. */ /* Get the NTA name if not found above. */
if (nametext == NULL) { if (nametext == NULL) {
nametext = next_token(lex, text); nametext = next_token(lex, text);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment