From df23503d3ea09a8dff4cbacb8c31329b6ef7d107 Mon Sep 17 00:00:00 2001 From: Sylvain Bellemare Date: Tue, 20 Jun 2017 18:21:40 +0200 Subject: [PATCH] Remove add_(subcondition,subfulfillment)_uri add_(subcondition,subfulfillment) can be used instead --- cryptoconditions/types/threshold.py | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/cryptoconditions/types/threshold.py b/cryptoconditions/types/threshold.py index 450c89a..b37d476 100644 --- a/cryptoconditions/types/threshold.py +++ b/cryptoconditions/types/threshold.py @@ -84,19 +84,6 @@ def add_subcondition(self, subcondition): raise TypeError('Subconditions must be URIs or objects of type Condition') self.subconditions.append({'type': CONDITION, 'body': subcondition}) - def add_subcondition_uri(self, subcondition_uri): - """ - Add a subcondition (unfulfilled). - - This will automatically parse the URI and call addSubcondition. - - Args: - subcondition_uri (str): Subcondition URI. - """ - if not isinstance(subcondition_uri, str): - raise TypeError('Subcondition must be provided as a URI string, was {}'.format(subcondition_uri)) - self.add_subcondition(Condition.from_uri(subcondition_uri)) - def add_subfulfillment(self, subfulfillment): """ Add a fulfilled subcondition. @@ -121,19 +108,6 @@ def add_subfulfillment(self, subfulfillment): self.subconditions.append( {'type': FULFILLMENT, 'body': subfulfillment}) - def add_subfulfillment_uri(self, subfulfillment_uri): - """ - Add a fulfilled subcondition. - - This will automatically parse the URI and call addSubfulfillment. - - Args: - subfulfillment_uri (str): Subfulfillment URI. - """ - if not isinstance(subfulfillment_uri, str): - raise TypeError('Subfulfillment must be provided as a URI string, was: {}'.format(subfulfillment_uri)) - self.add_subfulfillment(Fulfillment.from_uri(subfulfillment_uri)) - @property def asn1_dict_payload(self): subfulfillments = sorted(