Skip to content

Commit

Permalink
Remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden committed Oct 14, 2023
1 parent 3c27beb commit e4bda65
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/graphs/barchart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1769,23 +1769,6 @@ namespace Wisteria::Graphs
return middlePointOfBarEnd;
};

std::vector<wxPoint> boxCorners;
for (auto& bar : GetBars())
{
// index is only used for image, irrelevant here
drawBar(bar, true, 0);
boxCorners.push_back(barRect.GetTopLeft());
boxCorners.push_back(barRect.GetTopRight());
boxCorners.push_back(barRect.GetBottomLeft());
boxCorners.push_back(barRect.GetBottomRight());
}
const auto [minX, maxX] = std::minmax_element(boxCorners.cbegin(), boxCorners.cend(),
[](const auto lhv, const auto rhv) noexcept
{ return lhv.x < rhv.x; });
const auto [minY, maxY] = std::minmax_element(boxCorners.cbegin(), boxCorners.cend(),
[](const auto lhv, const auto rhv) noexcept
{ return lhv.y < rhv.y; });

// scale the common image to the plot area's size
scaledCommonImg = GetCommonBoxImage().IsOk() ?
Image::CropImageToRect(
Expand Down

0 comments on commit e4bda65

Please sign in to comment.