Refactor map cleanup: central popup manager and dead code removal

This commit is contained in:
Jürgen Mummert
2026-02-27 19:58:24 +01:00
parent 088bc58102
commit 7cb1097899
3 changed files with 103 additions and 227 deletions
-18
View File
@@ -347,24 +347,6 @@ class MapModuleDataProvider
return $qb->executeQuery()->fetchAllAssociative();
}
/**
* @return list<array<string,mixed>>
*/
private function fetchLocationRows(string $locationTable, array $locationGeoColumns): array
{
$qb = $this->connection->createQueryBuilder();
$qb
->select('l.id', 'l.title')
->addSelect(sprintf('l.%s AS latitude', $locationGeoColumns['latitude']))
->addSelect(sprintf('l.%s AS longitude', $locationGeoColumns['longitude']))
->from($locationTable, 'l')
->orderBy('l.id', 'ASC');
$this->applyPublicationConstraints($qb, 'l', $locationTable);
return $qb->executeQuery()->fetchAllAssociative();
}
/**
* @return list<array<string,mixed>>
*/