From 503c00e1b03417fd8f53d7b3c139f1ebfbfab672 Mon Sep 17 00:00:00 2001 From: Worros Date: Fri, 7 Jan 2011 16:08:31 +0800 Subject: [PATCH] Remove unused minPrint option --- pyfpdb/GuiAutoImport.py | 4 ---- pyfpdb/GuiBulkImport.py | 4 ---- pyfpdb/fpdb_import.py | 4 ---- 3 files changed, 12 deletions(-) diff --git a/pyfpdb/GuiAutoImport.py b/pyfpdb/GuiAutoImport.py index 03bec89d..70a12215 100755 --- a/pyfpdb/GuiAutoImport.py +++ b/pyfpdb/GuiAutoImport.py @@ -59,7 +59,6 @@ class GuiAutoImport (threading.Thread): self.importer = fpdb_import.Importer(self, self.settings, self.config, self.sql) self.importer.setCallHud(True) - self.importer.setMinPrint(settings['minPrint']) self.importer.setQuiet(False) self.importer.setFailOnError(False) self.importer.setHandCount(0) @@ -338,14 +337,11 @@ if __name__== "__main__": parser = OptionParser() parser.add_option("-q", "--quiet", action="store_false", dest="gui", default=True, help="don't start gui") - parser.add_option("-m", "--minPrint", "--status", dest="minPrint", default="0", type="int", - help=_("How often to print a one-line status report (0 (default) means never)")) (options, argv) = parser.parse_args() config = Configuration.Config() settings = {} - settings['minPrint'] = options.minPrint if os.name == 'nt': settings['os'] = 'windows' else: settings['os'] = 'linuxmac' diff --git a/pyfpdb/GuiBulkImport.py b/pyfpdb/GuiBulkImport.py index 5ea0a24b..ba6c1123 100755 --- a/pyfpdb/GuiBulkImport.py +++ b/pyfpdb/GuiBulkImport.py @@ -68,7 +68,6 @@ class GuiBulkImport(): # get the import settings from the gui and save in the importer self.importer.setHandCount(int(self.spin_hands.get_text())) - self.importer.setMinPrint(int(self.spin_hands.get_text())) self.importer.setQuiet(self.chk_st_st.get_active()) self.importer.setFailOnError(self.chk_fail.get_active()) self.importer.setThreads(int(self.spin_threads.get_text())) @@ -344,8 +343,6 @@ def main(argv=None): help=_("Conversion filter (*Full Tilt Poker, PokerStars, Everleaf, Absolute)")) parser.add_option("-x", "--failOnError", action="store_true", default=False, help=_("If this option is passed it quits when it encounters any error")) - parser.add_option("-m", "--minPrint", "--status", dest="minPrint", default="0", type="int", - help=_("How often to print a one-line status report (0 (default) means never)")) parser.add_option("-u", "--usage", action="store_true", dest="usage", default=False, help=_("Print some useful one liners")) parser.add_option("-s", "--starsarchive", action="store_true", dest="starsArchive", default=False, @@ -369,7 +366,6 @@ def main(argv=None): config = Configuration.Config() settings = {} - settings['minPrint'] = options.minPrint if os.name == 'nt': settings['os'] = 'windows' else: settings['os'] = 'linuxmac' diff --git a/pyfpdb/fpdb_import.py b/pyfpdb/fpdb_import.py index 5fb43632..ee43ce8e 100644 --- a/pyfpdb/fpdb_import.py +++ b/pyfpdb/fpdb_import.py @@ -86,7 +86,6 @@ class Importer: self.cacheSessions = self.config.get_import_parameters().get("cacheSessions") # CONFIGURATION OPTIONS - self.settings.setdefault("minPrint", 30) self.settings.setdefault("handCount", 0) #self.settings.setdefault("allowHudcacheRebuild", True) # NOT USED NOW #self.settings.setdefault("forceThreads", 2) # NOT USED NOW @@ -115,9 +114,6 @@ class Importer: def setCacheSessions(self, value): self.cacheSessions = value - def setMinPrint(self, value): - self.settings['minPrint'] = int(value) - def setHandCount(self, value): self.settings['handCount'] = int(value)