private void removeUselessTask(ProxyReg reg){
  List pendingTasks=cacheTaskMgr.getPending();
  for (int i=0; i < pendingTasks.size(); i++) {
    CacheTask t=(CacheTask)pendingTasks.get(i);
    if (t.isFromProxy(reg))     cacheTaskMgr.remove(t);
  }
}

private void removeUselessTask ( ProxyReg reg ) { List pendingTasks = cacheTaskMgr . getPending ( ) ; for ( int i = 0 ; i < pendingTasks . size ( ) ; i ++ ) { CacheTask t = ( CacheTask ) pendingTasks . get ( i ) ; if ( t . isFromProxy ( reg ) ) cacheTaskMgr . remove ( t ) ; } }
removes from the cache ' s task manager , all pending tasks associated with the given proxyreg . this method is called when the given proxyreg has been discarded .
