From 5cd69138399e3ef0568d7e5d92ca630870bbe51d Mon Sep 17 00:00:00 2001 From: "mstarzinger@chromium.org" Date: Mon, 21 Jan 2013 12:31:13 +0000 Subject: [PATCH] Remove unused GlobalHandles::IterateWeakRoots() BUG= Review URL: https://codereview.chromium.org/11969037 Patch from Kentaro Hara . git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13445 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/global-handles.cc | 10 ---------- src/global-handles.h | 6 ------ 2 files changed, 16 deletions(-) diff --git a/src/global-handles.cc b/src/global-handles.cc index aae680d..427eae0 100644 --- a/src/global-handles.cc +++ b/src/global-handles.cc @@ -494,16 +494,6 @@ void GlobalHandles::IterateWeakRoots(ObjectVisitor* v) { } -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) { for (NodeIterator it(this); !it.done(); it.Advance()) { if (it.node()->IsWeak() && f(it.node()->location())) { diff --git a/src/global-handles.h b/src/global-handles.h index 4508bff..8cfb34b 100644 --- a/src/global-handles.h +++ b/src/global-handles.h @@ -108,8 +108,6 @@ class ImplicitRefGroup { }; -typedef void (*WeakReferenceGuest)(Object* object, void* parameter); - class GlobalHandles { public: ~GlobalHandles(); @@ -178,10 +176,6 @@ class GlobalHandles { // 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); -- 2.7.4