Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
I think the plan was to use this in closing teams? We can bring it back
when we get to #3602, I guess.
  • Loading branch information
chadwhitacre committed Oct 22, 2016
1 parent 86a0e30 commit 7a15c72
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions gratipay/models/team/mixins/membership.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,6 @@ def remove_member(self, participant, recorder):
self.set_take_for(participant, ZERO, recorder)


def remove_all_members(self, cursor=None):
(cursor or self.db).run("""
INSERT INTO takes (ctime, member, team, amount, recorder) (
SELECT ctime, member, %(username)s, 0.00, %(username)s
FROM current_takes
WHERE team=%(username)s
AND amount > 0
);
""", dict(username=self.username))


@property
def nmembers(self):
"""The number of members. Read-only and computed (not in the db); equal to
Expand Down

0 comments on commit 7a15c72

Please sign in to comment.