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

Unified Diff: third_party/WebKit/Source/core/inspector/DOMPatchSupport.cpp

Issue 2869953003: Remove DEBUG_DOM_PATCH_SUPPORT (Closed)
Patch Set: Created 3 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 | « third_party/WebKit/Source/core/inspector/DOMPatchSupport.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/inspector/DOMPatchSupport.cpp
diff --git a/third_party/WebKit/Source/core/inspector/DOMPatchSupport.cpp b/third_party/WebKit/Source/core/inspector/DOMPatchSupport.cpp
index 2a4f851c02043d182b2d245b2d9349af514a1a9c..afb5e8c6bfc0fe32e38d2d027e79fc3adf223797 100644
--- a/third_party/WebKit/Source/core/inspector/DOMPatchSupport.cpp
+++ b/third_party/WebKit/Source/core/inspector/DOMPatchSupport.cpp
@@ -309,11 +309,6 @@ DOMPatchSupport::Diff(const HeapVector<Member<Digest>>& old_list,
}
}
-#ifdef DEBUG_DOM_PATCH_SUPPORT
- dumpMap(oldMap, "OLD");
- dumpMap(newMap, "NEW");
-#endif
-
return std::make_pair(old_map, new_map);
}
@@ -552,22 +547,6 @@ void DOMPatchSupport::MarkNodeAsUsed(Digest* digest) {
}
}
-#ifdef DEBUG_DOM_PATCH_SUPPORT
-static String nodeName(Node* node) {
- if (node->document().isXHTMLDocument())
- return node->nodeName();
- return node->nodeName().lower();
-}
-
-void DOMPatchSupport::dumpMap(const ResultMap& map, const String& name) {
- fprintf(stderr, "\n\n");
- for (size_t i = 0; i < map.size(); ++i)
- fprintf(stderr, "%s[%lu]: %s (%p) - [%lu]\n", name.utf8().data(), i,
- map[i].first ? nodeName(map[i].first->m_node).utf8().data() : "",
- map[i].first, map[i].second);
-}
-#endif
-
DEFINE_TRACE(DOMPatchSupport::Digest) {
visitor->Trace(node_);
visitor->Trace(children_);
« no previous file with comments | « third_party/WebKit/Source/core/inspector/DOMPatchSupport.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698