Revision: 13445
Author:   [email protected]
Date:     Mon Jan 21 04:31:13 2013
Log:      Remove unused GlobalHandles::IterateWeakRoots()

BUG=

Review URL: https://codereview.chromium.org/11969037
Patch from Kentaro Hara <[email protected]>.
http://code.google.com/p/v8/source/detail?r=13445

Modified:
 /branches/bleeding_edge/src/global-handles.cc
 /branches/bleeding_edge/src/global-handles.h

=======================================
--- /branches/bleeding_edge/src/global-handles.cc       Mon Jan 21 04:15:31 2013
+++ /branches/bleeding_edge/src/global-handles.cc       Mon Jan 21 04:31:13 2013
@@ -492,16 +492,6 @@
if (it.node()->IsWeakRetainer()) v->VisitPointer(it.node()->location());
   }
 }
-
-
-void GlobalHandles::IterateWeakRoots(WeakReferenceGuest f,
-                                     WeakReferenceCallback callback) {
-  for (NodeIterator it(this); !it.done(); it.Advance()) {
-    if (it.node()->IsWeak() && it.node()->callback() == callback) {
-      f(it.node()->object(), it.node()->parameter());
-    }
-  }
-}


 void GlobalHandles::IdentifyWeakHandles(WeakSlotCallback f) {
=======================================
--- /branches/bleeding_edge/src/global-handles.h        Mon Jan 21 04:15:31 2013
+++ /branches/bleeding_edge/src/global-handles.h        Mon Jan 21 04:31:13 2013
@@ -108,8 +108,6 @@
 };


-typedef void (*WeakReferenceGuest)(Object* object, void* parameter);
-
 class GlobalHandles {
  public:
   ~GlobalHandles();
@@ -178,10 +176,6 @@
   // Iterates over all weak roots in heap.
   void IterateWeakRoots(ObjectVisitor* v);

-  // Iterates over weak roots that are bound to a given callback.
-  void IterateWeakRoots(WeakReferenceGuest f,
-                        WeakReferenceCallback callback);
-
   // Find all weak handles satisfying the callback predicate, mark
   // them as pending.
   void IdentifyWeakHandles(WeakSlotCallback f);

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to