From: Terry Jan Reedy Date: Mon, 6 Jun 2016 01:32:45 +0000 (-0400) Subject: Issue #27156: Remove more unused idlelib code. X-Git-Tag: v3.6.0a2~112 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2e747c4b8f9db654ac3ee1411ab53e8774309595;p=thirdparty%2FPython%2Fcpython.git Issue #27156: Remove more unused idlelib code. --- diff --git a/Lib/idlelib/macosx.py b/Lib/idlelib/macosx.py index 618cc2631b78..8c50a598b23f 100644 --- a/Lib/idlelib/macosx.py +++ b/Lib/idlelib/macosx.py @@ -5,16 +5,6 @@ import sys import tkinter import warnings -def runningAsOSXApp(): - warnings.warn("runningAsOSXApp() is deprecated, use isAquaTk()", - DeprecationWarning, stacklevel=2) - return isAquaTk() - -def isCarbonAquaTk(root): - warnings.warn("isCarbonAquaTk(root) is deprecated, use isCarbonTk()", - DeprecationWarning, stacklevel=2) - return isCarbonTk() - _tk_type = None def _initializeTkVariantTests(root): diff --git a/Lib/idlelib/stackviewer.py b/Lib/idlelib/stackviewer.py index 5c188f07e7bb..87c964e7af06 100644 --- a/Lib/idlelib/stackviewer.py +++ b/Lib/idlelib/stackviewer.py @@ -120,9 +120,6 @@ class VariablesTreeItem(ObjectTreeItem): sublist.append(item) return sublist - def keys(self): # unused, left for possible 3rd party use - return list(self.object.keys()) - def _stack_viewer(parent): root = tk.Tk() root.title("Test StackViewer")