Skip to content

Commit 3f73ac3

Browse files
committed
grt: clang-tidy
Signed-off-by: Eder Monteiro <[email protected]>
1 parent 5ebe643 commit 3f73ac3

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/grt/src/Grid.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ const odb::Rect& Grid::getGridArea() const
190190

191191
odb::Point Grid::getPositionFromGridPoint(const int x, const int y)
192192
{
193-
int x_loc = tile_size_ * (x + 0.5) + getXMin();
194-
int y_loc = tile_size_ * (y + 0.5) + getYMin();
193+
int x_loc = (tile_size_ * (x + 0.5)) + getXMin();
194+
int y_loc = (tile_size_ * (y + 0.5)) + getYMin();
195195
return odb::Point(x_loc, y_loc);
196196
}
197197

src/grt/src/fastroute/src/FastRoute.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,9 +1283,6 @@ void FastRouteCore::getCapacityReductionData(
12831283
for (int k = 0; k < num_layers_; k++) {
12841284
bool is_horizontal
12851285
= layer_directions_[k] == odb::dbTechLayerDir::HORIZONTAL;
1286-
const uint8_t capH = h_capacity_3D_[k];
1287-
const uint8_t capV = v_capacity_3D_[k];
1288-
12891286
if (is_horizontal) {
12901287
int last_cell_cap_h = 0;
12911288
for (int y = 0; y < y_grid_; y++) {

0 commit comments

Comments
 (0)