Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Unified Diff: ui/views/mus/display_converter.cc

Issue 2010753002: views: Remove dead code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/mus/display_converter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/display_converter.cc
diff --git a/ui/views/mus/display_converter.cc b/ui/views/mus/display_converter.cc
deleted file mode 100644
index 0a66aa62ff2c0aca367012d4454478869f917b63..0000000000000000000000000000000000000000
--- a/ui/views/mus/display_converter.cc
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ui/views/mus/display_converter.h"
-
-#include <stdint.h>
-
-#include "components/mus/public/cpp/window.h"
-#include "mojo/converters/geometry/geometry_type_converters.h"
-
-namespace views {
-
-std::vector<display::Display> GetDisplaysFromWindow(mus::Window* window) {
- static int64_t synthesized_display_id = 2000;
- display::Display display;
- display.set_id(synthesized_display_id++);
- display.SetScaleAndBounds(
- window->viewport_metrics().device_pixel_ratio,
- gfx::Rect(window->viewport_metrics().size_in_pixels.To<gfx::Size>()));
- std::vector<display::Display> displays;
- displays.push_back(display);
- return displays;
-}
-
-} // namespace views
« no previous file with comments | « ui/views/mus/display_converter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698