From 86d9b410ebd521a732bc8804178e21f65720e778 Mon Sep 17 00:00:00 2001 From: Aaron Caldwell Date: Wed, 11 Mar 2020 14:06:31 -0600 Subject: [PATCH] Remove remaining refernce and case for 'TOUCH_LAYER'. It's never used --- x-pack/plugins/maps/public/reducers/map.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/x-pack/plugins/maps/public/reducers/map.js b/x-pack/plugins/maps/public/reducers/map.js index 7e81fb03dd85be..7e07569b44b830 100644 --- a/x-pack/plugins/maps/public/reducers/map.js +++ b/x-pack/plugins/maps/public/reducers/map.js @@ -25,7 +25,6 @@ import { UPDATE_LAYER_STYLE, SET_LAYER_STYLE_META, SET_JOINS, - TOUCH_LAYER, UPDATE_SOURCE_PROP, SET_REFRESH_CONFIG, TRIGGER_REFRESH_TIMER, @@ -202,17 +201,6 @@ export function map(state = INITIAL_STATE, action) { return updateWithDataResponse(state, action); case LAYER_DATA_LOAD_ENDED: return updateWithDataResponse(state, action); - case TOUCH_LAYER: - //action to enforce a reflow of the styles - const layer = state.layerList.find(layer => layer.id === action.layerId); - if (!layer) { - return state; - } - const indexOfLayer = state.layerList.indexOf(layer); - const newLayer = { ...layer }; - const newLayerList = [...state.layerList]; - newLayerList[indexOfLayer] = newLayer; - return { ...state, layerList: newLayerList }; case MAP_READY: return { ...state, ready: true }; case MAP_DESTROYED: