[pypy-commit] pypy translation-cleanup: kill a few more Arguments methods

rlamy noreply at buildbot.pypy.org
Thu Oct 18 23:41:07 CEST 2012


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: translation-cleanup
Changeset: r58236:2e1769043725
Date: 2012-10-18 22:36 +0100
http://bitbucket.org/pypy/pypy/changeset/2e1769043725/

Log:	kill a few more Arguments methods

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
@@ -96,15 +96,6 @@
 
     ###  Manipulation  ###
 
-    def replace_arguments(self, args_w):
-        "Return a new Arguments with a args_w as positional arguments."
-        return Arguments(self.space, args_w, self.keywords, self.keywords_w,
-                         keyword_names_w = self.keyword_names_w)
-
-    def prepend(self, w_firstarg):
-        "Return a new Arguments with a new argument inserted first."
-        return self.replace_arguments([w_firstarg] + self.arguments_w)
-
     def _combine_wrapped(self, w_stararg, w_starstararg):
         "unpack the *arg and **kwd into arguments_w and keywords_w"
         if w_stararg is not None:
@@ -188,12 +179,6 @@
 
     ###  Parsing for function calls  ###
 
-    @staticmethod
-    def frompacked(space, w_args=None, w_kwds=None):
-        """Convenience static method to build an Arguments
-           from a wrapped sequence and a wrapped dictionary."""
-        return Arguments(space, [], w_stararg=w_args, w_starstararg=w_kwds)
-
     def topacked(self):
         """Express the Argument object as a pair of wrapped w_args, w_kwds."""
         space = self.space
@@ -483,10 +468,6 @@
         return ArgumentsForTranslation(self.space, args_w, keywords, keywords_w)
 
     @staticmethod
-    def frompacked(space, w_args=None, w_kwds=None):
-        raise NotImplementedError("go away")
-
-    @staticmethod
     def fromshape(space, (shape_cnt,shape_keys,shape_star,shape_stst), data_w):
         args_w = data_w[:shape_cnt]
         p = end_keys = shape_cnt + len(shape_keys)


More information about the pypy-commit mailing list