| Index: ash/common/system/cast/tray_cast.cc
|
| diff --git a/ash/common/system/cast/tray_cast.cc b/ash/common/system/cast/tray_cast.cc
|
| index 0ae15ec33b280af972d7824bfdd9af7886e59672..9d8755d09ac119b9db9aa228d0e4cc703617557a 100644
|
| --- a/ash/common/system/cast/tray_cast.cc
|
| +++ b/ash/common/system/cast/tray_cast.cc
|
| @@ -348,10 +348,6 @@ class CastTrayView : public TrayItemView {
|
| explicit CastTrayView(SystemTrayItem* tray_item);
|
| ~CastTrayView() override;
|
|
|
| - // Called when the tray alignment changes so that the icon can recenter
|
| - // itself.
|
| - void UpdateAlignment(ShelfAlignment alignment);
|
| -
|
| private:
|
| DISALLOW_COPY_AND_ASSIGN(CastTrayView);
|
| };
|
| @@ -371,15 +367,6 @@ CastTrayView::CastTrayView(SystemTrayItem* tray_item)
|
|
|
| CastTrayView::~CastTrayView() {}
|
|
|
| -void CastTrayView::UpdateAlignment(ShelfAlignment alignment) {
|
| - // Center the item dependent on the orientation of the shelf.
|
| - views::BoxLayout::Orientation layout = IsHorizontalAlignment(alignment)
|
| - ? views::BoxLayout::kHorizontal
|
| - : views::BoxLayout::kVertical;
|
| - SetLayoutManager(new views::BoxLayout(layout, 0, 0, 0));
|
| - Layout();
|
| -}
|
| -
|
| // This view displays a list of cast receivers that can be clicked on and casted
|
| // to. It is activated by clicking on the chevron inside of
|
| // |CastSelectDefaultView|.
|
| @@ -681,9 +668,4 @@ void TrayCast::OnCastingSessionStartedOrStopped(bool started) {
|
| UpdatePrimaryView();
|
| }
|
|
|
| -void TrayCast::UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) {
|
| - if (tray_)
|
| - tray_->UpdateAlignment(alignment);
|
| -}
|
| -
|
| } // namespace ash
|
|
|