dns: remove unused functions
This commit is contained in:
parent
46acb09ed8
commit
b7b7b29f50
17
lib/dns.js
17
lib/dns.js
@ -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,
|
// c-ares invokes a callback either synchronously or asynchronously,
|
||||||
// but the dns API should always invoke a callback asynchronously.
|
// but the dns API should always invoke a callback asynchronously.
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user