Skip to content

Commit 3cb3ca3

Browse files
Remove unused code and unreliable benchmarks (#268)
1 parent eadafd9 commit 3cb3ca3

File tree

12 files changed

+18
-219
lines changed

12 files changed

+18
-219
lines changed

scripts/commit_benchmarks.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

scripts/run_benchmarks.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/dipdup/dipdup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ def __init__(self, ctx: DipDupContext) -> None:
7373

7474
self._logger = logging.getLogger('dipdup')
7575
self._indexes: Dict[str, Index] = {}
76-
self._contracts: Set[ContractConfig] = set()
7776
self._tasks: Deque[asyncio.Task] = deque()
7877

7978
self._entrypoint_filter: Set[Optional[str]] = set()
@@ -319,7 +318,6 @@ def __init__(self, config: DipDupConfig) -> None:
319318
datasources=self._datasources,
320319
callbacks=self._callbacks,
321320
)
322-
self._index_dispatcher: Optional[IndexDispatcher] = None
323321
self._scheduler = create_scheduler(self._config.advanced.scheduler)
324322
self._codegen = DipDupCodeGenerator(self._config, self._datasources_by_config)
325323
self._schema: Optional[Schema] = None

src/dipdup/index.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,6 @@ class OperationSubgroup:
6868
operations: Tuple[OperationData, ...]
6969
entrypoints: Set[Optional[str]]
7070

71-
@property
72-
def length(self) -> int:
73-
return len(self.operations)
74-
7571
def __hash__(self) -> int:
7672
return hash(f'{self.hash}:{self.counter}')
7773

src/dipdup/test/__init__.py

Lines changed: 0 additions & 77 deletions
This file was deleted.

src/dipdup/utils/__init__.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,6 @@ def import_from(module: str, obj: str) -> Any:
176176
raise HandlerImportError(module, obj) from e
177177

178178

179-
def remove_prefix(text: str, prefix: str) -> str:
180-
"""Remove prefix and strip underscores"""
181-
if text.startswith(prefix):
182-
text = text[len(prefix) :]
183-
return text.strip('_')
184-
185-
186179
def skip_ci(fn):
187180
if os.environ.get('CI'):
188181
return skip('CI environment, skipping')(fn)

tests/benchmarks/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/benchmarks/add_index.py

Lines changed: 0 additions & 43 deletions
This file was deleted.

tests/benchmarks/config.py

Lines changed: 0 additions & 37 deletions
This file was deleted.

tests/benchmarks/index.py

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)