Skip to content

Commit

Permalink
Remove add_(subcondition,subfulfillment)_uri
Browse files Browse the repository at this point in the history
add_(subcondition,subfulfillment) can be used instead
  • Loading branch information
sbellem committed Jun 20, 2017
1 parent 9fcb7d5 commit df23503
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions cryptoconditions/types/threshold.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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(
Expand Down

0 comments on commit df23503

Please sign in to comment.