From 137cadd4917087f44383317a14ce343a4d0df89d Mon Sep 17 00:00:00 2001 From: Worros Date: Mon, 23 Aug 2010 14:17:30 +0800 Subject: [PATCH] OnGame: Remove copied function --- pyfpdb/OnGameToFpdb.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/pyfpdb/OnGameToFpdb.py b/pyfpdb/OnGameToFpdb.py index a8b82c1b..00ecf6ae 100755 --- a/pyfpdb/OnGameToFpdb.py +++ b/pyfpdb/OnGameToFpdb.py @@ -285,24 +285,6 @@ class OnGame(HandHistoryConverter): newcards = found.group('CARDS').split(', ') hand.addHoleCards(street, hand.hero, closed=newcards, shown=False, mucked=False, dealt=True) - def readAction_old(self, hand, street): - m = self.re_Action.finditer(hand.streets.group(street)) - for action in m: - if action.group('ATYPE') == ' raises': - hand.addRaiseTo( street, action.group('PNAME'), action.group('BET') ) - elif action.group('ATYPE') == ' calls': - hand.addCall( street, action.group('PNAME'), action.group('BET') ) - elif action.group('ATYPE') == ' bets': - hand.addBet( street, action.group('PNAME'), action.group('BET') ) - elif action.group('ATYPE') == ' folds': - hand.addFold( street, action.group('PNAME')) - elif action.group('ATYPE') == ' checks': - hand.addCheck( street, action.group('PNAME')) - else: - print "DEBUG: unimplemented readAction: %s %s" %(action.group('PNAME'),action.group('ATYPE'),) - #hand.actions[street] += [[action.group('PNAME'), action.group('ATYPE')]] - # TODO: Everleaf does not record uncalled bets. - def readAction(self, hand, street): m = self.re_Action.finditer(hand.streets[street]) for action in m: