Bug 1294086 - remove debugging printf
authorAlexander Surkov <surkov.alexander@gmail.com>
Fri, 12 Aug 2016 10:20:45 -0400
changeset 309207 e425116a000ee2820911e84197d2f82f19c713a8
parent 309206 00f781f21da35251e0627c5e6d1bf190ddbd4493
child 309208 ef3a50774180e1ccc1b6d210295db8275739b92e
child 309319 ed079c982977c2ef0623255ff0a4eb871d44514f
push id30557
push userkwierso@gmail.com
push dateFri, 12 Aug 2016 20:45:15 +0000
treeherdermozilla-central@ef3a50774180 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1294086
milestone51.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1294086 - remove debugging printf
accessible/generic/DocAccessible.cpp
--- a/accessible/generic/DocAccessible.cpp
+++ b/accessible/generic/DocAccessible.cpp
@@ -1795,18 +1795,16 @@ DocAccessible::ProcessContentInserted(Ac
     return;
   }
 
   // If new root content has been inserted then update it.
   if (aContainer == this) {
     UpdateRootElIfNeeded();
   }
 
-  int32_t cnt = 0;
-
   InsertIterator iter(aContainer, aNodes);
   if (!iter.Next()) {
     return;
   }
 
 #ifdef A11Y_LOG
   logging::TreeInfo("children before insertion", logging::eVerbose,
                     aContainer);
@@ -1836,35 +1834,30 @@ DocAccessible::ProcessContentInserted(Ac
     if (aContainer->InsertAfter(iter.Child(), iter.ChildBefore())) {
 #ifdef A11Y_LOG
       logging::TreeInfo("accessible was inserted", 0,
                         "container", aContainer, "child", iter.Child(), nullptr);
 #endif
 
       mt.AfterInsertion(iter.Child());
       CreateSubtree(iter.Child());
-      cnt++;
       continue;
     }
 
     MOZ_ASSERT_UNREACHABLE("accessible was rejected");
     iter.Rejected();
   } while (iter.Next());
 
   mt.Done();
 
 #ifdef A11Y_LOG
   logging::TreeInfo("children after insertion", logging::eVerbose,
                     aContainer);
 #endif
 
-  if (cnt > 0) {
-    printf("children count: %d, inserted: %d\n", aContainer->ChildCount(), cnt);
-  }
-
   FireEventsOnInsertion(aContainer);
 }
 
 void
 DocAccessible::ProcessContentInserted(Accessible* aContainer, nsIContent* aNode)
 {
   if (!aContainer->IsInDocument()) {
     return;