From dcad0c247eb1bba0a6d9af99825c77bea4c0edef Mon Sep 17 00:00:00 2001 From: Aaron Ayres Date: Wed, 24 Mar 2021 14:34:56 -0500 Subject: [PATCH] remove some more commented out code --- chaco/data_range_1d.py | 3 --- chaco/example_support.py | 16 ---------------- chaco/grid.py | 2 -- 3 files changed, 21 deletions(-) diff --git a/chaco/data_range_1d.py b/chaco/data_range_1d.py index e28b14ac7..2455a411c 100644 --- a/chaco/data_range_1d.py +++ b/chaco/data_range_1d.py @@ -98,9 +98,6 @@ class DataRange1D(BaseDataRange): # The actual numerical value for the high setting. _high_value = CFloat(inf) - # A list of attributes to persist - # _pickle_attribs = ("_low_setting", "_high_setting") - #------------------------------------------------------------------------ # AbstractRange interface #------------------------------------------------------------------------ diff --git a/chaco/example_support.py b/chaco/example_support.py index 6e34bba7c..48549fb8a 100644 --- a/chaco/example_support.py +++ b/chaco/example_support.py @@ -14,21 +14,6 @@ from traits.etsconfig.api import ETSConfig -# Set up the debug logger for all chaco examples. -# We don't want users to go digging around for the default Enthought logfile -# in ~/envisage.log, so we add a handler to the global logger for a file -# "chaco.log" in the current directory. - -#import logging, logging.handlers -#try: -# chaco_handler = logging.handlers.RotatingFileHandler("chaco.log", -# maxBytes=1000000, backupCount=0) -# logging.getLogger().addHandler(chaco_handler) -#except: -# # If we can't override the default handler, it's OK. -# pass - - # Import a default palette for backwards compatibility from .default_colors import cbrewer as COLOR_PALETTE @@ -37,7 +22,6 @@ # PyQt/traits problem (see below) we can't because it would drag in traits too # early. Until it is fixed we just assume wx if we can import it. # Force the selection of a valid toolkit. -#import enable.toolkit if not ETSConfig.toolkit: for toolkit, toolkit_module in (('wx', 'wx'), ('qt4', 'pyface.qt')): try: diff --git a/chaco/grid.py b/chaco/grid.py index eb82b70ff..52a6ad343 100644 --- a/chaco/grid.py +++ b/chaco/grid.py @@ -407,8 +407,6 @@ def _orientation_changed(self): ### Persistence ########################################################### - #_pickles = ("orientation", "line_color", "line_style", "line_weight", - # "grid_interval", "mapper") def __getstate__(self): state = super(PlotGrid,self).__getstate__()