diff --git a/src/wallet.py b/src/wallet.py index 582a8aa..8e9b740 100644 --- a/src/wallet.py +++ b/src/wallet.py @@ -13,18 +13,11 @@ class Wallet(object): def __init__(self, initial_amount=0): self.balance = initial_amount - def spend_cash(self, amount, deferred=False): - """Removes the specified amount of money from the current Wallet object""" - if self.balance < amount: - raise InsufficientAmount(f"Not enough available to spend {amount}") - - self.balance -= amount - def add_cash(self, amount): """Adds the specified amount of money to the current Wallet object""" self.balance += amount - def spend_money(self, amount, deferred=False): + def spend_money(self, amount): """Removes the specified amount of money from the current Wallet object""" if self.balance < amount: raise InsufficientAmount(f"Not enough available to spend {amount}")