Skip to content

Commit aef5cb4

Browse files
committed
remove old code
1 parent 460c3f8 commit aef5cb4

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

kevm-pyk/src/kevm_pyk/__main__.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from __future__ import annotations
22

33
import abc
4-
import contextlib
54
import dataclasses
65
import json
76
import logging
@@ -14,7 +13,6 @@
1413
from typing import TYPE_CHECKING
1514

1615
import multiprocess # type: ignore
17-
import pathos # type: ignore
1816
from pyk.cli.utils import file_path
1917
from pyk.cterm import CTerm
2018
from pyk.kast.outer import KApply, KRewrite, KSort, KToken
@@ -45,7 +43,7 @@
4543

4644
if TYPE_CHECKING:
4745
from argparse import Namespace
48-
from collections.abc import Callable, Iterable, Iterator
46+
from collections.abc import Callable, Iterable
4947
from typing import Any, Final, Mapping, TypeVar
5048

5149
from pyk.kast.outer import KClaim
@@ -189,20 +187,6 @@ def exec_prove_legacy(
189187
raise SystemExit(1)
190188

191189

192-
class ZeroProcessPool:
193-
def map(self, f: Callable[[Any], Any], xs: list[Any]) -> list[Any]:
194-
return [f(x) for x in xs]
195-
196-
197-
@contextlib.contextmanager
198-
def wrap_process_pool(workers: int) -> Iterator[ZeroProcessPool | pathos.pools.ProcessPool]:
199-
if workers <= 1:
200-
yield ZeroProcessPool()
201-
else:
202-
with pathos.pools.ProcessPool(ncpus=workers) as pp:
203-
yield pp
204-
205-
206190
class TodoQueueTask(abc.ABC):
207191
...
208192

0 commit comments

Comments
 (0)