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

Unified Diff: Source/platform/graphics/PathTraversalState.cpp

Issue 1148293012: Removing Unused Method PathTraversalState::quadraticBezierTo() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 | « Source/platform/graphics/PathTraversalState.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/PathTraversalState.cpp
diff --git a/Source/platform/graphics/PathTraversalState.cpp b/Source/platform/graphics/PathTraversalState.cpp
index ee0ea0c4e7c508aa6042c136246e8582c5d4a0bf..c85b43289347fed70b80931abd29c1d35919ff8b 100644
--- a/Source/platform/graphics/PathTraversalState.cpp
+++ b/Source/platform/graphics/PathTraversalState.cpp
@@ -191,16 +191,6 @@ float PathTraversalState::lineTo(const FloatPoint& point)
return distance;
}
-float PathTraversalState::quadraticBezierTo(const FloatPoint& newControl, const FloatPoint& newEnd)
-{
- float distance = curveLength<QuadraticBezier>(*this, QuadraticBezier(m_current, newControl, newEnd));
-
- if (m_action != TraversalPointAtLength && m_action != TraversalNormalAngleAtLength)
- m_current = newEnd;
-
- return distance;
-}
-
float PathTraversalState::cubicBezierTo(const FloatPoint& newControl1, const FloatPoint& newControl2, const FloatPoint& newEnd)
{
float distance = curveLength<CubicBezier>(*this, CubicBezier(m_current, newControl1, newControl2, newEnd));
« no previous file with comments | « Source/platform/graphics/PathTraversalState.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698