Skip to content

Commit 6c90e49

Browse files
authored
Remove unused variables in aws_host_resolver (#719)
1 parent bca5740 commit 6c90e49

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

include/aws/io/host_resolver.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ struct aws_host_resolution_config {
7575
uint64_t resolve_frequency_ns; /* 0 defaults to 1 second interval */
7676
};
7777

78-
struct aws_host_listener;
79-
80-
struct aws_host_listener_options;
81-
8278
struct aws_host_resolver_purge_host_options {
8379
/* the host to purge the cache for */
8480
const struct aws_string *host;

source/host_resolver.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,6 @@ struct default_host_resolver {
128128
/* host_name (aws_string*) -> host_entry* */
129129
struct aws_hash_table host_entry_table;
130130

131-
/* Hash table of listener entries per host name. We keep this decoupled from the host entry table to allow for
132-
* listeners to be added/removed regardless of whether or not a corresponding host entry exists.
133-
*
134-
* Any time the listener list in the listener entry becomes empty, we remove the entry from the table. This
135-
* includes when a resolver thread moves all of the available listeners to its local list.
136-
*/
137-
/* host_name (aws_string*) -> host_listener_entry* */
138-
struct aws_hash_table listener_entry_table;
139-
140131
enum default_resolver_state state;
141132

142133
/*
@@ -329,7 +320,6 @@ static void s_cleanup_default_resolver(struct aws_host_resolver *resolver) {
329320

330321
aws_event_loop_group_release(default_host_resolver->event_loop_group);
331322
aws_hash_table_clean_up(&default_host_resolver->host_entry_table);
332-
aws_hash_table_clean_up(&default_host_resolver->listener_entry_table);
333323

334324
aws_mutex_clean_up(&default_host_resolver->resolver_lock);
335325

@@ -923,12 +913,6 @@ static void aws_host_resolver_thread(void *arg) {
923913
request_interruptible_wait_time = wait_between_resolves_interval - shutdown_only_wait_time;
924914
}
925915

926-
struct aws_linked_list listener_list;
927-
aws_linked_list_init(&listener_list);
928-
929-
struct aws_linked_list listener_destroy_list;
930-
aws_linked_list_init(&listener_destroy_list);
931-
932916
bool keep_going = true;
933917

934918
struct aws_array_list address_list;

0 commit comments

Comments
 (0)