From a83d66c352528a4809c15e25880217afe4046119 Mon Sep 17 00:00:00 2001 From: Enam Mijbah Noor Date: Wed, 12 Jun 2024 17:13:43 +0600 Subject: [PATCH] Remove unused `BaseReceiptStore.get_url` method --- miner/app/src/compute_horde_miner/miner/receipt_store/base.py | 3 --- miner/app/src/compute_horde_miner/miner/receipt_store/local.py | 3 --- 2 files changed, 6 deletions(-) diff --git a/miner/app/src/compute_horde_miner/miner/receipt_store/base.py b/miner/app/src/compute_horde_miner/miner/receipt_store/base.py index 13009d269..940de8080 100644 --- a/miner/app/src/compute_horde_miner/miner/receipt_store/base.py +++ b/miner/app/src/compute_horde_miner/miner/receipt_store/base.py @@ -6,6 +6,3 @@ class BaseReceiptStore(metaclass=abc.ABCMeta): @abc.abstractmethod def store(self, receipts: list[Receipt]) -> None: ... - - @abc.abstractmethod - def get_url(self) -> str: ... diff --git a/miner/app/src/compute_horde_miner/miner/receipt_store/local.py b/miner/app/src/compute_horde_miner/miner/receipt_store/local.py index f741290b6..1c5aaa631 100644 --- a/miner/app/src/compute_horde_miner/miner/receipt_store/local.py +++ b/miner/app/src/compute_horde_miner/miner/receipt_store/local.py @@ -51,6 +51,3 @@ def store(self, receipts: list[Receipt]) -> None: shutil.move(temp_file.name, filepath) filepath.chmod(0o644) - - def get_url(self) -> str: - return settings.LOCAL_RECEIPTS_URL + FILENAME