Delete unused codes.

This commit is contained in:
zhengshuxin 2023-07-07 21:38:40 +08:00
parent 90c4f9d341
commit 3227944489
2 changed files with 0 additions and 5 deletions

View File

@ -280,7 +280,6 @@ void event_timer_trigger(ACL_EVENT *eventp)
void *timer_arg;
TIMER_NODE *iter;
TIMER_INFO *info;
int n = 0;
SET_TIME(eventp->present);
@ -294,7 +293,6 @@ void event_timer_trigger(ACL_EVENT *eventp)
while (info) {
acl_ring_prepend(&eventp->timers_ready, &info->tmp);
info = info->next;
n++;
}
iter = AVL_NEXT(&eventp->timers->avl, iter);
}

View File

@ -27,7 +27,6 @@ int acl_valid_hostname(const char *name, int gripe)
char *myname = "acl_valid_hostname";
const char *cp;
int label_length = 0;
int label_count = 0;
int non_numeric = 0;
int ch;
@ -45,8 +44,6 @@ int acl_valid_hostname(const char *name, int gripe)
*/
for (cp = name; (ch = *(const unsigned char *) cp) != 0; cp++) {
if (ACL_ISALNUM(ch) || ch == '_') { /* grr.. */
if (label_length == 0)
label_count++;
label_length++;
if (label_length > ACL_VALID_LABEL_LEN) {
if (gripe)