Author: Ronan Lamy <[email protected]>
Branch: translation-cleanup
Changeset: r58238:3a00a97c8f0d
Date: 2012-10-18 22:54 +0100
http://bitbucket.org/pypy/pypy/changeset/3a00a97c8f0d/
Log: Kill unused methods firstarg() and topacked()
diff --git a/pypy/objspace/flow/argument.py b/pypy/objspace/flow/argument.py
--- a/pypy/objspace/flow/argument.py
+++ b/pypy/objspace/flow/argument.py
@@ -171,31 +171,6 @@
raise ValueError, "not enough arguments (%d expected)" % argcount
return self.arguments_w
- def firstarg(self):
- "Return the first argument for inspection."
- if self.arguments_w:
- return self.arguments_w[0]
- return None
-
- ### Parsing for function calls ###
-
- def topacked(self):
- """Express the Argument object as a pair of wrapped w_args, w_kwds."""
- space = self.space
- w_args = space.newtuple(self.arguments_w)
- w_kwds = space.newdict()
- if self.keywords is not None:
- limit = len(self.keywords)
- if self.keyword_names_w is not None:
- limit -= len(self.keyword_names_w)
- for i in range(len(self.keywords)):
- if i < limit:
- w_key = space.wrap(self.keywords[i])
- else:
- w_key = self.keyword_names_w[i - limit]
- space.setitem(w_kwds, w_key, self.keywords_w[i])
- return w_args, w_kwds
-
# JIT helper functions
# these functions contain functionality that the JIT is not always supposed to
# look at. They should not get a self arguments, which makes the amount of
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit