public static void removeObsoleteGoalCaches(KeyValueList table) {
    { Context k = null;
      GoalCache v = null;
      KvCons iter000 = table.theKvList;

      loop000 : for (;iter000 != null; iter000 = iter000.rest) {
        k = ((Context)(iter000.key));
        v = ((GoalCache)(iter000.value));
        if (k.deletedP()) {
          v = v;
          table.removeAt(k);
          Logic.removeObsoleteGoalCaches(table);
          break loop000;
        }
      }
    }
  }