From 3f075ca432f0784a6e6e3525ff434c1d3d96ed56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Mon, 11 Dec 2017 19:18:29 +0100 Subject: [PATCH] Remove unused argument --- .../mapconfig/adapter/aggregation-mapconfig-adapter.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/cartodb/models/mapconfig/adapter/aggregation-mapconfig-adapter.js b/lib/cartodb/models/mapconfig/adapter/aggregation-mapconfig-adapter.js index 227866e4..5850e16a 100644 --- a/lib/cartodb/models/mapconfig/adapter/aggregation-mapconfig-adapter.js +++ b/lib/cartodb/models/mapconfig/adapter/aggregation-mapconfig-adapter.js @@ -138,7 +138,7 @@ module.exports = class AggregationMapConfigAdapter { _adaptLayer (connection, layer, index, isVectorOnlyMapConfig, mapConfig) { return new Promise((resolve, reject) => { - this._shouldAdaptLayer(connection, layer, index, isVectorOnlyMapConfig, (err, shouldAdapt) => { + this._shouldAdaptLayer(connection, layer, isVectorOnlyMapConfig, (err, shouldAdapt) => { if (err) { return reject(err); } @@ -162,7 +162,7 @@ module.exports = class AggregationMapConfigAdapter { }); } - _shouldAdaptLayer (connection, layer, index, isVectorOnlyMapConfig, callback) { + _shouldAdaptLayer (connection, layer, isVectorOnlyMapConfig, callback) { let shouldAdapt = false; if (!isVectorOnlyMapConfig && !this._hasLayerAggregation(layer)) { @@ -182,7 +182,6 @@ module.exports = class AggregationMapConfigAdapter { layer.options.aggregation.threshold : 1e5; - if (estimatedFeatureCount < threshold) { return callback(null, shouldAdapt); }