Skip to content

Commit

Permalink
🎨 solve merge issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Drewniok committed Jan 15, 2025
1 parent 83f354d commit 54c0d00
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions include/fiction/layouts/cell_level_layout.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<cell> get_cells_by_type(const typename Technology::cell_type type) const noexcept
{
std::vector<cell> 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.
*
Expand Down

0 comments on commit 54c0d00

Please sign in to comment.