From 54c0d008275dc54b94efe32f87bafa0cb471f751 Mon Sep 17 00:00:00 2001 From: Jan Drewniok Date: Wed, 15 Jan 2025 17:17:37 +0100 Subject: [PATCH] :art: solve merge issue. --- include/fiction/layouts/cell_level_layout.hpp | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/include/fiction/layouts/cell_level_layout.hpp b/include/fiction/layouts/cell_level_layout.hpp index 2e3372532..35abba94a 100644 --- a/include/fiction/layouts/cell_level_layout.hpp +++ b/include/fiction/layouts/cell_level_layout.hpp @@ -220,29 +220,6 @@ class cell_level_layout : public ClockedLayout return cells; } - /** - * Returns all cells of the given type. - * - * @param type Type of cells to return. - * @return All cells of the layout that have the given type. - */ - [[nodiscard]] std::vector get_cells_by_type(const typename Technology::cell_type type) const noexcept - { - std::vector cells{}; - cells.reserve(num_cells()); - - foreach_cell( - [&cells, &type, this](const auto& c) - { - const auto c_type = get_cell_type(c); - if (c_type == type) - { - cells.push_back(c); - } - }); - - return cells; - } /** * Returns the numbers of cells of the given type. *