From 2e747c4b8f9db654ac3ee1411ab53e8774309595 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Sun, 5 Jun 2016 21:32:45 -0400 Subject: [PATCH] Issue #27156: Remove more unused idlelib code. --- Lib/idlelib/macosx.py | 10 ---------- Lib/idlelib/stackviewer.py | 3 --- 2 files changed, 13 deletions(-) diff --git a/Lib/idlelib/macosx.py b/Lib/idlelib/macosx.py index 618cc2631b..8c50a598b2 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 5c188f07e7..87c964e7af 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") -- 2.40.0