0

Remove some unused AppsGridView members

Removes drag_start_page_ and drag_view_offset_, which are not used.

Change-Id: Id1851990ee6a7cf08aa48f1ce088a5837fb7c466
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2959602
Reviewed-by: Alex Newcomer <newcomer@chromium.org>
Commit-Queue: Alex Newcomer <newcomer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#892235}
This commit is contained in:
Toni Barzic
2021-06-14 20:09:25 +00:00
committed by Chromium LUCI CQ
parent 8913d4c3f8
commit a30d6eedd5
2 changed files with 0 additions and 11 deletions

@ -440,8 +440,6 @@ void AppsGridView::InitiateDrag(AppListItemView* view,
// https://crbug.com/834682.
drag_view_->RequestFocus();
drag_view_init_index_ = GetIndexOfView(drag_view_);
drag_view_offset_ = location;
drag_start_page_ = pagination_model_.selected_page();
reorder_placeholder_ = drag_view_init_index_;
ExtractDragLocation(root_location, &drag_start_grid_view_);
drag_view_start_ = gfx::Point(drag_view_->x(), drag_view_->y());
@ -752,7 +750,6 @@ void AppsGridView::InitiateDragFromReparentItemInRootLevelGridView(
if (!folder_delegate_)
view_structure_.Add(drag_view_, GetLastTargetIndex());
drag_start_page_ = pagination_model_.selected_page();
drag_start_grid_view_ = drag_point;
drag_view_start_ = drag_view_->origin();
@ -795,8 +792,6 @@ void AppsGridView::ClearDragState() {
drop_target_ = GridIndex();
reorder_placeholder_ = GridIndex();
drag_start_grid_view_ = gfx::Point();
drag_start_page_ = -1;
drag_view_offset_ = gfx::Point();
// Drag may end before |host_drag_start_timer_| gets fired.
if (host_drag_start_timer_.IsRunning())

@ -778,15 +778,9 @@ class ASH_EXPORT AppsGridView : public views::View,
// The index of the drag_view_ when the drag starts.
GridIndex drag_view_init_index_;
// The point where the drag started in AppListItemView coordinates.
gfx::Point drag_view_offset_;
// The point where the drag started in GridView coordinates.
gfx::Point drag_start_grid_view_;
// Page the drag started on.
int drag_start_page_ = -1;
Pointer drag_pointer_ = NONE;
// The most recent reorder drop target.