diff --git a/src/context.c b/src/context.c index cfc512b0..de784008 100755 --- a/src/context.c +++ b/src/context.c @@ -1691,12 +1691,6 @@ getdns_bindata_destroy(struct mem_funcs *mfs, GETDNS_FREE(*mfs, bindata); } -/* get the fd */ -int getdns_context_fd(struct getdns_context* context) { - RETURN_IF_NULL(context, -1); - return ub_fd(context->unbound_ctx); -} - /* TODO: Remove next_timeout argument from getdns_context_get_num_pending_requests */ void getdns_handle_timeouts(struct getdns_event_base* base, struct timeval* now, diff --git a/src/getdns/getdns_extra.h b/src/getdns/getdns_extra.h index 45f89231..1e30d520 100644 --- a/src/getdns/getdns_extra.h +++ b/src/getdns/getdns_extra.h @@ -61,9 +61,6 @@ getdns_return_t getdns_dict_util_set_string(struct getdns_dict * dict, getdns_return_t getdns_dict_util_get_string(struct getdns_dict * dict, char *name, char **result); -/* get the fd */ -int getdns_context_fd(getdns_context* context); - /* tells underlying unbound to use background threads or fork */ getdns_return_t getdns_context_set_use_threads(getdns_context* context, int use_threads);