Skip to content

Commit

Permalink
remove old code
Browse files Browse the repository at this point in the history
  • Loading branch information
h0nzZik committed Oct 25, 2023
1 parent 460c3f8 commit aef5cb4
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions kevm-pyk/src/kevm_pyk/__main__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from __future__ import annotations

import abc
import contextlib
import dataclasses
import json
import logging
Expand All @@ -14,7 +13,6 @@
from typing import TYPE_CHECKING

import multiprocess # type: ignore
import pathos # type: ignore
from pyk.cli.utils import file_path
from pyk.cterm import CTerm
from pyk.kast.outer import KApply, KRewrite, KSort, KToken
Expand Down Expand Up @@ -45,7 +43,7 @@

if TYPE_CHECKING:
from argparse import Namespace
from collections.abc import Callable, Iterable, Iterator
from collections.abc import Callable, Iterable
from typing import Any, Final, Mapping, TypeVar

from pyk.kast.outer import KClaim
Expand Down Expand Up @@ -189,20 +187,6 @@ def exec_prove_legacy(
raise SystemExit(1)


class ZeroProcessPool:
def map(self, f: Callable[[Any], Any], xs: list[Any]) -> list[Any]:
return [f(x) for x in xs]


@contextlib.contextmanager
def wrap_process_pool(workers: int) -> Iterator[ZeroProcessPool | pathos.pools.ProcessPool]:
if workers <= 1:
yield ZeroProcessPool()
else:
with pathos.pools.ProcessPool(ncpus=workers) as pp:
yield pp


class TodoQueueTask(abc.ABC):
...

Expand Down

0 comments on commit aef5cb4

Please sign in to comment.