remove unused functions
1 file changed, 1 insertion(+), 30 deletions(-)
changed files
M dnsconfig.js → dnsconfig.js
@@ -75,21 +75,6 @@ return records } /** - * @description point name to target with an ALIAS or CNAME record - * @param {string} name - * @param {string} target - * @param {RecordModifier[]} [modifiers] - */ -function link(name, target, modifiers) { - if (modifiers == null || modifiers.length === 0) { - modifiers = [] - } - - var rec = name === '@' ? ALIAS : CNAME - return rec.bind(null, name, ensureAbsolute(target)).apply(null, modifiers) -} - -/** * @param {string} domain * @param {string} verification * @param {string[]} [extras]@@ -120,20 +105,7 @@ return CNAME.bind(CNAME, source, target).apply(CNAME, recordModifiers) }) } -/** - * @param {string} subdomain - * @param {string[]} targets - */ -function delegate(subdomain, targets) { - return targets.map(function (target) { - return NS(subdomain, target) - }) -} - -var nsHosts = [ - "ns3", - "ns4", -].map(function (hostname) { +var nsHosts = ['ns3', 'ns4'].map(function (hostname) { return hostname + '.vpsfree.cz.' })@@ -145,7 +117,6 @@ var soa = SOA('@', 'ns3.vpsfree.cz.', 'hostmaster.alanpearce.eu.', 43200, 3600, 2419200, 120) // Providers: -var RegistrarNone = NewRegistrar('none') var RegistrarOVH = NewRegistrar('ovh') var PowerDNS = NewDnsProvider('powerdns', { 'zone_kind': 'Master',