Commits

Armin Rigo  committed d4ed2c8

Kill this method. This adds yet another special case which
can potentially break code.

  • Participants
  • Parent commits 6501621

Comments (0)

Files changed (2)

File lib_pypy/_ctypes/basics.py

         else:
             return self.from_param(as_parameter)
 
-    def get_ffi_param(self, value):
-        cdata = self.from_param(value)
-        return cdata, cdata._to_ffi_param()
-
     def get_ffi_argtype(self):
         if self._ffiargtype:
             return self._ffiargtype

File lib_pypy/_ctypes/function.py

 
     @classmethod
     def _conv_param(cls, argtype, arg):
-        if isinstance(argtype, _CDataMeta):
-            cobj, ffiparam = argtype.get_ffi_param(arg)
-            return cobj, ffiparam, argtype
-        
         if argtype is not None:
             arg = argtype.from_param(arg)
         if hasattr(arg, '_as_parameter_'):