Index: ash/common/wm/mru_window_tracker.cc |
diff --git a/ash/common/wm/mru_window_tracker.cc b/ash/common/wm/mru_window_tracker.cc |
index bea899b05510e9ba7afc26c051cc22143a55220c..68d0433b0db771e372499517f94506d51ccd1268 100644 |
--- a/ash/common/wm/mru_window_tracker.cc |
+++ b/ash/common/wm/mru_window_tracker.cc |
@@ -34,14 +34,6 @@ void AddTrackedWindows(WmWindow* root, |
windows->insert(windows->end(), children.begin(), children.end()); |
} |
-// Returns whether |w1| should be considered less recently used than |w2|. This |
-// is used for a stable sort to move minimized windows to the LRU end of the |
-// list. |
-bool CompareWindowState(WmWindow* w1, WmWindow* w2) { |
- return w1->GetWindowState()->IsMinimized() && |
- !w2->GetWindowState()->IsMinimized(); |
-} |
- |
// Returns a list of windows ordered by their stacking order. |
// If |mru_windows| is passed, these windows are moved to the front of the list. |
// It uses the given |should_include_window_predicate| to determine whether to |
@@ -95,9 +87,6 @@ MruWindowTracker::WindowList BuildWindowListInternal( |
} |
} |
- // Move minimized windows to the beginning (LRU end) of the list. |
- std::stable_sort(windows.begin(), windows.end(), CompareWindowState); |
- |
// Window cycling expects the topmost window at the front of the list. |
std::reverse(windows.begin(), windows.end()); |