From 86dd737fca3dd5e9f32013f2fa1ab9c7101c6b42 Mon Sep 17 00:00:00 2001 From: Armin Sabouri Date: Fri, 30 May 2025 12:17:23 -0400 Subject: [PATCH] Remove unused Python callback classes We created these callback classes while processing the receiver state machine in the unit tests. They are now moved to `test/test_payjoin_integration_test.py`. --- .../python/test/test_payjoin_unit_test.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/payjoin-ffi/python/test/test_payjoin_unit_test.py b/payjoin-ffi/python/test/test_payjoin_unit_test.py index ef0f97f95..76832ea58 100644 --- a/payjoin-ffi/python/test/test_payjoin_unit_test.py +++ b/payjoin-ffi/python/test/test_payjoin_unit_test.py @@ -31,22 +31,6 @@ def test_valid_uris(self): except Exception as e: self.fail(f"Failed to create a valid Uri for {uri}. Error: {e}") - -class ScriptOwnershipCallback(payjoin.IsScriptOwned): - def __init__(self, value): - self.value = value - - def callback(self, script): - return self.value - - -class OutputOwnershipCallback(payjoin.IsOutputKnown): - def __init__(self, value): - self.value = value - - def callback(self, outpoint: payjoin.bitcoin.OutPoint): - return False - class InMemoryReceiverPersister(payjoin.payjoin_ffi.ReceiverPersister): def __init__(self): self.receivers = {}