Skip to content
Snippets Groups Projects
Commit d7965541 authored by Lubos Slovak's avatar Lubos Slovak
Browse files

Removed function zonedb_find_name_in_zone()

parent da032df7
No related branches found
No related tags found
No related merge requests found
......@@ -115,24 +115,6 @@ DEBUG_DNSLIB_ZONEDB(
/*----------------------------------------------------------------------------*/
const dnslib_node_t *dnslib_zonedb_find_name_in_zone(const dnslib_zone_t *zone,
const dnslib_dname_t *dname)
{
assert(zone != NULL && dname != NULL);
// start of RCU reader critical section
rcu_read_lock();
const dnslib_node_t *n = dnslib_zonedb_find_name_in_zone(zone, dname);
// end of RCU reader critical section
rcu_read_unlock();
return n;
}
/*----------------------------------------------------------------------------*/
void dnslib_zonedb_deep_free(dnslib_zonedb_t **db)
{
const skip_node_t *zn = skip_first((*db)->zones);
......
......@@ -75,18 +75,6 @@ int dnslib_zonedb_remove_zone(dnslib_zonedb_t *db, dnslib_dname_t *zone_name);
const dnslib_zone_t *dnslib_zonedb_find_zone_for_name(dnslib_zonedb_t *db,
const dnslib_dname_t *dname);
/*!
* \brief Finds the given name in the zone database and returns corresponding
* zone node.
*
* \param database Zone database to search in.
* \param dname Domain name to find.
*
* \return Proper zone node for the given name or NULL if not found.
*/
const dnslib_node_t *dnslib_zonedb_find_name_in_zone(const dnslib_zone_t *zone,
const dnslib_dname_t *dname);
/*!
* \brief Destroys and deallocates the whole zone database.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment