Skip to content

Commit

Permalink
AppList: Remove unused code in SelectedPageChanged().
Browse files Browse the repository at this point in the history
Change-Id: Id8c3411690169864b66c27d70a6bdf653248590b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3138376
Reviewed-by: Toni Baržić <tbarzic@chromium.org>
Commit-Queue: Matthew Mourgos <mmourgos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#917421}
  • Loading branch information
Matthew Mourgos authored and Chromium LUCI CQ committed Sep 1, 2021
1 parent 20a3b13 commit bfe82c8
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions ash/app_list/views/paged_apps_grid_view.cc
Original file line number Diff line number Diff line change
Expand Up @@ -638,17 +638,6 @@ void PagedAppsGridView::SelectedPageChanged(int old_selected,
int new_selected) {
items_container()->layer()->SetTransform(gfx::Transform());
if (IsDragging()) {
// Sets the transform to locate the scrolled content.
gfx::Size grid_size = GetTileGridSize();
gfx::Vector2d update;
if (pagination_controller_->scroll_axis() ==
PaginationController::SCROLL_AXIS_HORIZONTAL) {
const int page_width = grid_size.width() + GetPaddingBetweenPages();
update.set_x(page_width * (new_selected - old_selected));
} else {
const int page_height = grid_size.height() + GetPaddingBetweenPages();
update.set_y(page_height * (new_selected - old_selected));
}
Layout();
UpdateDropTargetRegion();
MaybeStartPageFlipTimer(last_drag_point());
Expand Down

0 comments on commit bfe82c8

Please sign in to comment.