diff --git a/src/dns/caas.js b/src/dns/caas.js index 8192445e6..708811ac7 100644 --- a/src/dns/caas.js +++ b/src/dns/caas.js @@ -1,7 +1,6 @@ 'use strict'; exports = module.exports = { - add: add, del: del, upsert: upsert, getChangeStatus: getChangeStatus, diff --git a/src/dns/route53.js b/src/dns/route53.js index 127a65a92..772061140 100644 --- a/src/dns/route53.js +++ b/src/dns/route53.js @@ -1,7 +1,6 @@ 'use strict'; exports = module.exports = { - add: add, get: get, del: del, upsert: upsert, diff --git a/src/subdomains.js b/src/subdomains.js index 9cd3a92ec..a39f0929b 100644 --- a/src/subdomains.js +++ b/src/subdomains.js @@ -1,7 +1,6 @@ 'use strict'; module.exports = exports = { - add: add, remove: remove, status: status, upsert: upsert, @@ -56,22 +55,6 @@ function api(provider) { } } -function add(subdomain, type, values, callback) { - assert.strictEqual(typeof subdomain, 'string'); - assert.strictEqual(typeof type, 'string'); - assert(util.isArray(values)); - assert.strictEqual(typeof callback, 'function'); - - settings.getDnsConfig(function (error, dnsConfig) { - if (error) return callback(new SubdomainError(SubdomainError.INTERNAL_ERROR, error)); - - api(dnsConfig.provider).add(dnsConfig, config.zoneName(), subdomain, type, values, function (error, changeId) { - if (error) return callback(error); - callback(null, changeId); - }); - }); -} - function get(subdomain, type, callback) { assert.strictEqual(typeof subdomain, 'string'); assert.strictEqual(typeof type, 'string');