Performance: Remove 'AllKnownLayouts' as much as possible

This commit is contained in:
Pieter Vander Vennet 2023-10-19 16:34:42 +02:00
parent 0e4cce59ea
commit 0f60977b6d
7 changed files with 27 additions and 64 deletions

View file

@ -49,14 +49,4 @@ export class AllKnownLayoutsLazy {
export class AllKnownLayouts {
public static allKnownLayouts: AllKnownLayoutsLazy = new AllKnownLayoutsLazy()
static AllPublicLayers() {
const layers = [].concat(
...this.allKnownLayouts
.values()
.filter((layout) => !layout.hideFromOverview)
.map((layout) => layout.layers)
)
return layers
}
}