Commit 9601a9bb authored by thakis's avatar thakis Committed by Commit bot

Remove DEBUG_DOM_PATCH_SUPPORT

The code guarded by it hasn't been compiling for a while, and this
code was added over 5 years ago. It probably isn't used any longer.

BUG=675877

Review-Url: https://codereview.chromium.org/2869953003
Cr-Commit-Position: refs/heads/master@{#471136}
parent 4e32ad08
...@@ -309,11 +309,6 @@ DOMPatchSupport::Diff(const HeapVector<Member<Digest>>& old_list, ...@@ -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); return std::make_pair(old_map, new_map);
} }
...@@ -552,22 +547,6 @@ void DOMPatchSupport::MarkNodeAsUsed(Digest* digest) { ...@@ -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) { DEFINE_TRACE(DOMPatchSupport::Digest) {
visitor->Trace(node_); visitor->Trace(node_);
visitor->Trace(children_); visitor->Trace(children_);
......
...@@ -86,9 +86,6 @@ class DOMPatchSupport final { ...@@ -86,9 +86,6 @@ class DOMPatchSupport final {
ExceptionState&); ExceptionState&);
bool RemoveChildAndMoveToNew(Digest*, ExceptionState&); bool RemoveChildAndMoveToNew(Digest*, ExceptionState&);
void MarkNodeAsUsed(Digest*); void MarkNodeAsUsed(Digest*);
#ifdef DEBUG_DOM_PATCH_SUPPORT
void dumpMap(const ResultMap&, const String& name);
#endif
Document& GetDocument() const { return *document_; } Document& GetDocument() const { return *document_; }
Member<DOMEditor> dom_editor_; Member<DOMEditor> dom_editor_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment