aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar
diff options
context:
space:
mode:
authorAymeric Augustin2013-11-10 16:02:24 +0100
committerAymeric Augustin2013-11-10 16:02:50 +0100
commitb9d2abfeddaaea4c70f75e0c19a40195740b009d (patch)
treed97f83d58ba3081fd6aab74a8b590f207d016a04 /debug_toolbar
parentf92aba225936fa768c098a8f1db51125ac1715ec (diff)
downloaddjango-debug-toolbar-b9d2abfeddaaea4c70f75e0c19a40195740b009d.tar.bz2
Remove code that isn't used any more.
Diffstat (limited to 'debug_toolbar')
-rw-r--r--debug_toolbar/middleware.py4
-rw-r--r--debug_toolbar/utils/tracking/__init__.py19
2 files changed, 0 insertions, 23 deletions
diff --git a/debug_toolbar/middleware.py b/debug_toolbar/middleware.py
index 80e9305..daea751 100644
--- a/debug_toolbar/middleware.py
+++ b/debug_toolbar/middleware.py
@@ -54,10 +54,6 @@ class DebugToolbarMiddleware(object):
"""
debug_toolbars = {}
- @classmethod
- def get_current(cls):
- return cls.debug_toolbars.get(threading.current_thread().ident)
-
def __init__(self):
self._urlconfs = {}
diff --git a/debug_toolbar/utils/tracking/__init__.py b/debug_toolbar/utils/tracking/__init__.py
index a8a0421..e69de29 100644
--- a/debug_toolbar/utils/tracking/__init__.py
+++ b/debug_toolbar/utils/tracking/__init__.py
@@ -1,19 +0,0 @@
-from __future__ import unicode_literals
-
-
-def replace_method(klass, method_name):
- original = getattr(klass, method_name)
-
- def inner(callback):
- def wrapped(*args, **kwargs):
- return callback(original, *args, **kwargs)
-
- actual = getattr(original, '__wrapped__', original)
- wrapped.__wrapped__ = actual
- wrapped.__doc__ = getattr(actual, '__doc__', None)
- wrapped.__name__ = actual.__name__
-
- setattr(klass, method_name, wrapped)
- return wrapped
-
- return inner