Remove obsolete code

This commit is contained in:
Pieter Vander Vennet 2024-01-19 02:00:05 +01:00
parent fb088059a5
commit 35228daa8f

View file

@ -103,7 +103,6 @@ export default class GeoJsonSource implements FeatureSource {
const time = new Date() const time = new Date()
const newFeatures: Feature[] = [] const newFeatures: Feature[] = []
let i = 0 let i = 0
let skipped = 0
for (const feature of json.features) { for (const feature of json.features) {
if (feature.geometry.type === "Point") { if (feature.geometry.type === "Point") {
// See https://github.com/maproulette/maproulette-backend/issues/242 // See https://github.com/maproulette/maproulette-backend/issues/242
@ -131,16 +130,9 @@ export default class GeoJsonSource implements FeatureSource {
i++ i++
} }
if (self.seenids.has(props.id)) { if (self.seenids.has(props.id)) {
skipped++
continue continue
} }
self.seenids.add(props.id) self.seenids.add(props.id)
let freshness: Date = time
if (feature.properties["_last_edit:timestamp"] !== undefined) {
freshness = new Date(props["_last_edit:timestamp"])
}
newFeatures.push(feature) newFeatures.push(feature)
} }