Skip to content

Commit

Permalink
Remove remaining refernce and case for 'TOUCH_LAYER'. It's never used
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Caldwell committed Mar 11, 2020
1 parent 25ec8f1 commit 86d9b41
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions x-pack/plugins/maps/public/reducers/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 86d9b41

Please sign in to comment.