Remove unused function

This commit is contained in:
Raul Ochoa 2016-03-22 12:22:48 +01:00
parent 90b92f0180
commit 26512f6485

View File

@ -30,27 +30,6 @@ function layerQuery(query, columnNames) {
return layerQueryTemplate({ _query: query, _columns: skipColumns(columnNames).join(', ') });
}
function replaceSourceRootQueries(requestMapConfig, analysisToRemove) {
var analysisSourceRootsIds = requestMapConfig.analyses.reduce(function(sourceRootsIds, analysis, analysisIndex) {
if (analysis.type === 'source' && !!analysis.id) {
sourceRootsIds[analysis.id] = analysis;
analysisToRemove[analysisIndex] = true;
}
return sourceRootsIds;
}, {});
requestMapConfig.layers = requestMapConfig.layers.map(function(layer) {
var sourceId = layer.options && layer.options.source && layer.options.source.id;
if (sourceId && analysisSourceRootsIds.hasOwnProperty(sourceId)) {
delete layer.options.source;
layer.options.sql = analysisSourceRootsIds[sourceId].params.query;
}
return layer;
});
return requestMapConfig;
}
function appendFiltersToNodes(requestMapConfig, dataviewsFiltersBySourceId) {
var analyses = requestMapConfig.analyses || [];