From 02b2e5044cdb2e05a9f3d6177ce8b47acf0b86d5 Mon Sep 17 00:00:00 2001 From: Worros Date: Fri, 12 Dec 2008 17:38:55 +0900 Subject: [PATCH] Remove duplicate function from Tables.py --- pyfpdb/Tables.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/pyfpdb/Tables.py b/pyfpdb/Tables.py index 8d44c1ae..a626b043 100755 --- a/pyfpdb/Tables.py +++ b/pyfpdb/Tables.py @@ -291,17 +291,6 @@ def get_site_from_exe(c, exe): return params['site_name'] return None -def clean_title(name): - """Clean the little info strings from the table name.""" -# these strings could go in a config file - for pattern in [' \(6 max\)', ' \(heads up\)', ' \(deep\)', - ' \(deep hu\)', ' \(deep 6\)', ' \(2\)', - ' \(edu\)', ' \(edu, 6 max\)', ' \(6\)', - ' no all-in', ' fast', ',', ' 50BB min', '\s+$']: - name = re.sub(pattern, '', name) - name = name.rstrip() - return name - def pokerstars_decode_table(tw): # Extract poker information from the window title. This is not needed for # fpdb, since all that information is available in the db via new_hand_number.