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

Unified Diff: third_party/WebKit/Source/core/editing/Position.cpp

Issue 2291423002: Remove debugPosition() functions. (Closed)
Patch Set: Created 4 years, 4 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/editing/Position.cpp
diff --git a/third_party/WebKit/Source/core/editing/Position.cpp b/third_party/WebKit/Source/core/editing/Position.cpp
index 1488cbf64b21a57d6875290c4c7e3a5432e14450..c7c0a81a8ab1bffa7da96ed81d3d66e83049917d 100644
--- a/third_party/WebKit/Source/core/editing/Position.cpp
+++ b/third_party/WebKit/Source/core/editing/Position.cpp
@@ -492,32 +492,6 @@ PositionTemplate<Strategy> PositionTemplate<Strategy>::lastPositionInOrAfterNode
return Strategy::editingIgnoresContent(node) ? afterNode(node) : lastPositionInNode(node);
}
-template <typename Strategy>
-void PositionTemplate<Strategy>::debugPosition(const char* msg) const
-{
- static const char* const anchorTypes[] = {
- "OffsetInAnchor",
- "BeforeAnchor",
- "AfterAnchor",
- "BeforeChildren",
- "AfterChildren",
- "Invalid",
- };
-
- if (isNull()) {
- fprintf(stderr, "Position [%s]: null\n", msg);
- return;
- }
-
- const char* anchorType = anchorTypes[std::min(static_cast<size_t>(m_anchorType), WTF_ARRAY_LENGTH(anchorTypes) - 1)];
- if (m_anchorNode->isTextNode()) {
- fprintf(stderr, "Position [%s]: %s [%p] %s, (%s) at %d\n", msg, anchorNode()->nodeName().utf8().data(), anchorNode(), anchorType, m_anchorNode->nodeValue().utf8().data(), m_offset);
- return;
- }
-
- fprintf(stderr, "Position [%s]: %s [%p] %s at %d\n", msg, anchorNode()->nodeName().utf8().data(), anchorNode(), anchorType, m_offset);
-}
-
PositionInFlatTree toPositionInFlatTree(const Position& pos)
{
if (pos.isNull())
« no previous file with comments | « third_party/WebKit/Source/core/editing/Position.h ('k') | third_party/WebKit/Source/core/editing/VisiblePosition.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698