From c1dbeea63578cdf91f4156169d62e32989570176 Mon Sep 17 00:00:00 2001 From: Nathan Reese Date: Fri, 20 Oct 2017 07:51:56 +0200 Subject: [PATCH] remove unused variable --- public/vislib/geoFilter.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/public/vislib/geoFilter.js b/public/vislib/geoFilter.js index ed7b645..4512ba8 100644 --- a/public/vislib/geoFilter.js +++ b/public/vislib/geoFilter.js @@ -22,19 +22,14 @@ define(function (require) { if (existingFilter) { let geoFilters = _.flatten([newFilter]); - let type = ''; if (_.has(existingFilter, 'bool.should')) { geoFilters = geoFilters.concat(existingFilter.bool.should); - type = 'bool'; } else if (_.has(existingFilter, 'geo_bounding_box')) { geoFilters.push({geo_bounding_box: existingFilter.geo_bounding_box}); - type = 'geo_bounding_box'; } else if (_.has(existingFilter, 'geo_polygon')) { geoFilters.push({geo_polygon: existingFilter.geo_polygon}); - type = 'geo_polygon'; } else if (_.has(existingFilter, 'geo_shape')) { geoFilters.push({geo_shape: existingFilter.geo_shape}); - type = 'geo_shape'; } // Update method removed - so just remove old filter and add updated filter