[Python-checkins] cpython (2.7): Issue 18189: remove unused methods in idlelib.Delegator.Delegator.

terry.reedy python-checkins at python.org
Sun Jun 30 22:53:04 CEST 2013


http://hg.python.org/cpython/rev/a568a5426a16
changeset:   84392:a568a5426a16
branch:      2.7
user:        Terry Jan Reedy <tjreedy at udel.edu>
date:        Sun Jun 30 16:51:53 2013 -0400
summary:
  Issue 18189: remove unused methods in idlelib.Delegator.Delegator.
Idle code already uses x.delegate instead of x.getdelegate().
The printed report must have been for testing.

files:
  Lib/idlelib/Delegator.py |  8 --------
  1 files changed, 0 insertions(+), 8 deletions(-)


diff --git a/Lib/idlelib/Delegator.py b/Lib/idlelib/Delegator.py
--- a/Lib/idlelib/Delegator.py
+++ b/Lib/idlelib/Delegator.py
@@ -20,14 +20,6 @@
                 pass
         self.__cache.clear()
 
-    def cachereport(self):
-        keys = self.__cache.keys()
-        keys.sort()
-        print keys
-
     def setdelegate(self, delegate):
         self.resetcache()
         self.delegate = delegate
-
-    def getdelegate(self):
-        return self.delegate

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list