From 62b4879d632601750e8ee82a2e8807f497ff9d78 Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny Date: Thu, 19 Jan 2023 14:11:22 +0100 Subject: [PATCH] drop dead code --- app/src/frontend/map/layers/parcel-boundary-layer.tsx | 10 +--------- app/src/frontend/map/map.tsx | 5 ----- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/app/src/frontend/map/layers/parcel-boundary-layer.tsx b/app/src/frontend/map/layers/parcel-boundary-layer.tsx index ec8b9a33..9a5c5e19 100644 --- a/app/src/frontend/map/layers/parcel-boundary-layer.tsx +++ b/app/src/frontend/map/layers/parcel-boundary-layer.tsx @@ -22,16 +22,8 @@ export function ParcelBoundaryLayer() { style={{color: '#ff0', fill: false, weight: 1}} /* minNativeZoom={17}*/ />; - } else if (parcel == "disabled") { - return
- // do not display anything - return boundaryGeojson && - } else { - return boundaryGeojson && - ; + return
} } diff --git a/app/src/frontend/map/map.tsx b/app/src/frontend/map/map.tsx index a23f2d17..381c676c 100644 --- a/app/src/frontend/map/map.tsx +++ b/app/src/frontend/map/map.tsx @@ -5,8 +5,6 @@ import 'leaflet/dist/leaflet.css'; import './map.css'; import { apiGet } from '../apiHelpers'; -import { HelpIcon } from '../components/icons'; -import { Category } from '../config/categories-config'; import { initialMapViewport, mapBackgroundColor, MapTheme, LayerEnablementState } from '../config/map-config'; import { Building } from '../models/building'; @@ -97,9 +95,6 @@ export const ColouringMap : FC = ({ [dataLayers], ) - const hasSelection = selectedBuildingId != undefined; - const isEdit = ['edit', 'multi-edit'].includes(mode); - return (