diff options
author | David Cournapeau <cournape@gmail.com> | 2009-10-08 13:58:45 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-10-08 13:58:45 +0000 |
commit | e54df63621db89eddbadc7bf0f36798ee1f79e0a (patch) | |
tree | ad5d5c55c9aef5fee945b1d8e22df0879165c68f /numpy | |
parent | 3d3f47f305532a0f4ee6655810dea09ac3e05c82 (diff) | |
download | numpy-e54df63621db89eddbadc7bf0f36798ee1f79e0a.tar.gz |
ENH: removed doubled code.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/code_generators/genapi.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/numpy/core/code_generators/genapi.py b/numpy/core/code_generators/genapi.py index b882cdf09..d2fca1deb 100644 --- a/numpy/core/code_generators/genapi.py +++ b/numpy/core/code_generators/genapi.py @@ -73,12 +73,6 @@ class Function(object): else: return typename + ' ' + name - def argtypes_string(self): - if not self.args: - return 'void' - argstr = ', '.join([_repl(a[0]) for a in self.args]) - return argstr - def __str__(self): argstr = ', '.join([self._format_arg(a) for a in self.args]) if self.doc: @@ -430,6 +424,7 @@ def get_api_functions(tagname, api_dict): dfunctions.append( (o, func) ) dfunctions.sort() return [a[1] for a in dfunctions] + def fullapi_hash(api_dicts): """Given a list of api dicts defining the numpy C API, compute a checksum of the list of items in the API (as a string).""" |