Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
dns: remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Apr 13, 2012
1 parent 46acb09 commit b7b7b29
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions lib/dns.js
Expand Up @@ -41,23 +41,6 @@ function errnoException(errorno, syscall) {
}


function familyToSym(family) {
switch (family) {
case 4: return cares.AF_INET;
case 6: return cares.AF_INET6;
default: return cares.AF_UNSPEC;
}
}


function symToFamily(family) {
switch (family) {
case cares.AF_INET: return 4;
case cares.AF_INET6: return 6;
default: return undefined;
}
}

// c-ares invokes a callback either synchronously or asynchronously,
// but the dns API should always invoke a callback asynchronously.
//
Expand Down

0 comments on commit b7b7b29

Please sign in to comment.