Skip to content

Commit

Permalink
[fdio] Remove unused get_dns function
Browse files Browse the repository at this point in the history
This function has no callers.

Test: No behavior change
Change-Id: Id7dc97b73540ea4c641bfd55f5fd3f513d60425d
  • Loading branch information
Adam Barth authored and CQ bot account: [email protected] committed Nov 5, 2018
1 parent 5b74046 commit 82822e2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions system/ulib/fdio/bsdsocket.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,6 @@ static zx_status_t get_service_with_retries(const char* path, zx_handle_t* saved
return r;
}

static zx_status_t get_dns(zx_handle_t* out) {
static zx_handle_t saved = ZX_HANDLE_INVALID;
static mtx_t lock = MTX_INIT;
return get_service_with_retries("/svc/dns.DNS", &saved, &lock, out);
}

static zx_status_t get_socket_provider(zx_handle_t* out) {
static zx_handle_t saved = ZX_HANDLE_INVALID;
static mtx_t lock = MTX_INIT;
Expand Down

0 comments on commit 82822e2

Please sign in to comment.