Skip to content

Commit

Permalink
Fix -Wunusued-but-set-variable: /ash/wm
Browse files Browse the repository at this point in the history
This CL was uploaded by git cl split.

R=minch@chromium.org

Bug: 1203071
Change-Id: I9144885a23ad3f7e53b8b517ff1c3c4c5e80179f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3216999
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Min Chen <minch@chromium.org>
Reviewed-by: Min Chen <minch@chromium.org>
Cr-Commit-Position: refs/heads/main@{#930683}
  • Loading branch information
pkasting authored and Chromium LUCI CQ committed Oct 12, 2021
1 parent eadf0bb commit 9037bdf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ash/wm/workspace/workspace_window_resizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,6 @@ WorkspaceWindowResizer::WorkspaceWindowResizer(
// TODO: figure out how to deal with window going off the edge.

// Calculate sizes so that we can maintain the ratios if we need to resize.
int total_available = 0;
for (size_t i = 0; i < attached_windows_.size(); ++i) {
gfx::Size min(attached_windows_[i]->delegate()
? attached_windows_[i]->delegate()->GetMinimumSize()
Expand All @@ -1056,7 +1055,6 @@ WorkspaceWindowResizer::WorkspaceWindowResizer(
std::max(PrimaryAxisSize(min), kMinOnscreenSize));
total_min_ += min_size;
total_initial_size_ += initial_size;
total_available += std::max(min_size, initial_size) - min_size;
}
instance = this;

Expand Down

0 comments on commit 9037bdf

Please sign in to comment.