[pypy-commit] pypy gc-minimark-pinning: kill the nonsense decorator

fijal noreply at buildbot.pypy.org
Fri May 11 18:01:38 CEST 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: gc-minimark-pinning
Changeset: r55041:f654d6a4613b
Date: 2012-05-11 17:58 +0200
http://bitbucket.org/pypy/pypy/changeset/f654d6a4613b/

Log:	kill the nonsense decorator

diff --git a/pypy/rlib/rgc.py b/pypy/rlib/rgc.py
--- a/pypy/rlib/rgc.py
+++ b/pypy/rlib/rgc.py
@@ -24,18 +24,6 @@
 def unpin(obj):
     pass
 
-
-class pinned_object(object):
-    def __init__(self, obj):
-        self.obj = obj
-        
-    def __enter__(self):
-        pin(self.obj)
-        return self
-    
-    def __exit__(self, *args):
-        unpin(self.obj)
-
 # ____________________________________________________________
 # Annotation and specialization
 


More information about the pypy-commit mailing list