Commit 0f8e211c authored by Alex Newcomer's avatar Alex Newcomer Committed by Commit Bot

Remove some dead code in AppsGridView

Just remove this old code that is no longer used.

Change-Id: If6a75621e262f89f4fdc6154e8eddbbc9fa9cb04
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2006411
Commit-Queue: Alex Newcomer <newcomer@chromium.org>
Commit-Queue: Matthew Mourgos <mmourgos@chromium.org>
Auto-Submit: Alex Newcomer <newcomer@chromium.org>
Reviewed-by: default avatarMatthew Mourgos <mmourgos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#732644}
parent 8cb5d7e0
...@@ -2116,12 +2116,6 @@ void AppsGridView::StartDragAndDropHostDrag(const gfx::Point& grid_location) { ...@@ -2116,12 +2116,6 @@ void AppsGridView::StartDragAndDropHostDrag(const gfx::Point& grid_location) {
if (!drag_view_ || !drag_and_drop_host_) if (!drag_view_ || !drag_and_drop_host_)
return; return;
// Determine the mouse offset to the center of the icon so that the drag and
// drop host follows this layer.
gfx::Vector2d delta =
drag_view_offset_ - drag_view_->GetLocalBounds().CenterPoint();
delta.set_y(delta.y() + drag_view_->title()->size().height() / 2);
// We have to hide the original item since the drag and drop host will do // We have to hide the original item since the drag and drop host will do
// the OS dependent code to "lift off the dragged item". Apply the scale // the OS dependent code to "lift off the dragged item". Apply the scale
// factor of this view's transform to the dragged view as well. // factor of this view's transform to the dragged view as well.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment