diff --git a/lib/cartodb/models/mapconfig/adapter/turbo-carto-adapter.js b/lib/cartodb/models/mapconfig/adapter/turbo-carto-adapter.js index 46efd100..b9487095 100644 --- a/lib/cartodb/models/mapconfig/adapter/turbo-carto-adapter.js +++ b/lib/cartodb/models/mapconfig/adapter/turbo-carto-adapter.js @@ -4,13 +4,6 @@ var dot = require('dot'); dot.templateSettings.strip = false; var queue = require('queue-async'); var PSQL = require('cartodb-psql'); -/** - * cartodb-psql creates `global.Promise` as an empty constructor. - * However, `turbo-carto` relies on a polyfil that fails to create the polyfil - * as it finds `global.Promise` but it doesn't find `Promise.resolve`. - */ -global.Promise = global.Promise || function() {}; -global.Promise.resolve = global.Promise.resolve || function() {}; var turboCarto = require('turbo-carto'); var SubstitutionTokens = require('../../../utils/substitution-tokens');