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

Unified Diff: third_party/WebKit/Source/core/svg/SVGPathByteStreamSource.cpp

Issue 1646543004: Refactor away SVGPathSource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use namespace Created 4 years, 11 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
Index: third_party/WebKit/Source/core/svg/SVGPathByteStreamSource.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGPathByteStreamSource.cpp b/third_party/WebKit/Source/core/svg/SVGPathByteStreamSource.cpp
index 2d84d66b6cd6c8f6eb0fb578703bfd6883a0eb4b..629909b1fd7bd3675b7a264cedbca4737846389e 100644
--- a/third_party/WebKit/Source/core/svg/SVGPathByteStreamSource.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGPathByteStreamSource.cpp
@@ -21,20 +21,6 @@
namespace blink {
-bool SVGPathByteStreamSource::hasMoreData() const
-{
- return m_streamCurrent < m_streamEnd;
-}
-
-SVGPathSegType SVGPathByteStreamSource::peekSegmentType()
-{
- ASSERT(hasMoreData());
- ASSERT(m_streamCurrent + sizeof(unsigned short) <= m_streamEnd);
- unsigned short commandBytes;
- memcpy(&commandBytes, m_streamCurrent, sizeof(commandBytes));
- return static_cast<SVGPathSegType>(commandBytes);
-}
-
PathSegmentData SVGPathByteStreamSource::parseSegment()
{
ASSERT(hasMoreData());
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPathByteStreamSource.h ('k') | third_party/WebKit/Source/core/svg/SVGPathParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698