From cd48267cf2a29cc9bc14c7564b3cbc8337efecac Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 7 May 2024 12:29:48 +0200 Subject: [PATCH] wip: remove unused code --- umap/static/umap/js/modules/facets.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/umap/static/umap/js/modules/facets.js b/umap/static/umap/js/modules/facets.js index c1ecf5b7..461a8ec3 100644 --- a/umap/static/umap/js/modules/facets.js +++ b/umap/static/umap/js/modules/facets.js @@ -70,21 +70,6 @@ export default class Facets { const names = Object.keys(defined) const facetProperties = this.compute(names, defined) - const filterFeatures = function () { - let found = false - this.map.eachBrowsableDataLayer((datalayer) => { - datalayer.resetLayer(true) - if (datalayer.hasDataVisible()) found = true - }) - // TODO: display a results counter in the panel instead. - if (!found) { - this.map.ui.alert({ - content: translate('No results for these facets'), - level: 'info', - }) - } - } - const fields = names.map((name) => { let criteria = facetProperties[name] let handler = 'FacetSearchChoices'