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

Unified Diff: ui/events/event.cc

Issue 63153003: mac: Prepare for -Wunused-functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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 | « tools/gn/setup.cc ('k') | ui/gfx/canvas_skia.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event.cc
diff --git a/ui/events/event.cc b/ui/events/event.cc
index a127bb9879e33d62bccaf6daeb89b3b466814eed..2775891b15b462ff5f451bfe14f58d0e8ffded41 100644
--- a/ui/events/event.cc
+++ b/ui/events/event.cc
@@ -44,17 +44,6 @@ base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) {
#endif
}
-gfx::Point CalibratePoint(const gfx::Point& point,
- const gfx::Size& from,
- const gfx::Size& to) {
- float calibrated_x =
- static_cast<float>(point.x()) * to.width() / from.width();
- float calibrated_y =
- static_cast<float>(point.y()) * to.height() / from.height();
- return gfx::Point(static_cast<int>(floorf(calibrated_x + 0.5f)),
- static_cast<int>(floorf(calibrated_y + 0.5f)));
-}
-
std::string EventTypeName(ui::EventType type) {
#define RETURN_IF_TYPE(t) if (type == ui::t) return #t
#define CASE_TYPE(t) case ui::t: return #t
« no previous file with comments | « tools/gn/setup.cc ('k') | ui/gfx/canvas_skia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698