summaryrefslogtreecommitdiffstats
path: root/ui/gfx/point_f.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gfx/point_f.cc')
-rw-r--r--ui/gfx/point_f.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/ui/gfx/point_f.cc b/ui/gfx/point_f.cc
index bdc4a66..3d814c5 100644
--- a/ui/gfx/point_f.cc
+++ b/ui/gfx/point_f.cc
@@ -4,10 +4,7 @@
#include "ui/gfx/point_f.h"
-#include <cmath>
-
#include "base/stringprintf.h"
-#include "ui/gfx/point.h"
namespace gfx {
@@ -19,10 +16,7 @@ PointF::PointF() : PointBase<PointF, float>(0, 0) {
PointF::PointF(float x, float y) : PointBase<PointF, float>(x, y) {
}
-Point PointF::ToPoint() const {
- return Point(static_cast<int>(std::floor(x())),
- static_cast<int>(std::floor(y())));
-}
+PointF::~PointF() {}
std::string PointF::ToString() const {
return base::StringPrintf("%f,%f", x(), y());