[pypy-svn] r14082 - in pypy/branch/dist-2.4.1/pypy: interpreter objspace/std
ac at codespeak.net
ac at codespeak.net
Sat Jul 2 13:29:16 CEST 2005
Author: ac
Date: Sat Jul 2 13:29:15 2005
New Revision: 14082
Modified:
pypy/branch/dist-2.4.1/pypy/interpreter/baseobjspace.py
pypy/branch/dist-2.4.1/pypy/interpreter/executioncontext.py
pypy/branch/dist-2.4.1/pypy/objspace/std/dictobject.py
Log:
Remove some dead code.
Modified: pypy/branch/dist-2.4.1/pypy/interpreter/baseobjspace.py
==============================================================================
--- pypy/branch/dist-2.4.1/pypy/interpreter/baseobjspace.py (original)
+++ pypy/branch/dist-2.4.1/pypy/interpreter/baseobjspace.py Sat Jul 2 13:29:15 2005
@@ -154,10 +154,6 @@
def leave_cache_building_mode(self, val):
"hook for the flow object space"
- def get_ec_state_dict(self):
- "Return the 'state dict' from the active execution context."
- return self.getexecutioncontext().get_state_dict()
-
def getexecutioncontext(self):
"Return what we consider to be the active execution context."
ec = self.threadlocals.executioncontext
Modified: pypy/branch/dist-2.4.1/pypy/interpreter/executioncontext.py
==============================================================================
--- pypy/branch/dist-2.4.1/pypy/interpreter/executioncontext.py (original)
+++ pypy/branch/dist-2.4.1/pypy/interpreter/executioncontext.py Sat Jul 2 13:29:15 2005
@@ -10,7 +10,6 @@
def __init__(self, space):
self.space = space
self.framestack = Stack()
- self.stateDict = {}
self.w_tracefunc = None
self.w_profilefunc = None
self.is_tracing = 0
@@ -115,12 +114,6 @@
return frame.last_exception
return None
- def get_state_dict(self):
- """A mechanism to store arbitrary per ExecutionContext data.
- Similar to cpython's PyThreadState_GetDict.
- """
- return self.stateDict
-
def settrace(self, w_func):
"""Set the global trace function."""
if self.space.is_true(self.space.is_(w_func, self.space.w_None)):
Modified: pypy/branch/dist-2.4.1/pypy/objspace/std/dictobject.py
==============================================================================
--- pypy/branch/dist-2.4.1/pypy/objspace/std/dictobject.py (original)
+++ pypy/branch/dist-2.4.1/pypy/objspace/std/dictobject.py Sat Jul 2 13:29:15 2005
@@ -293,7 +293,6 @@
def str__Dict(space, w_dict):
if w_dict.used == 0:
return space.wrap('{}')
- statedict = space.get_ec_state_dict()
w_currently_in_repr = space.getexecutioncontext()._py_repr
return dictstr(space, w_currently_in_repr, w_dict)
More information about the Pypy-commit
mailing list