History

python/ext/py-cvec.c: remove unused function

Paul Brossier committed 10 years ago

Commit 1ad9dc31 parent 34d0c252 files · +0 −15Browse files

Showing the changes to python/ext (2 of 2 files). Show all

Unified · Split

2 files
  1. python/ext/aubio-types.h +0 −1
  2. python/ext/py-cvec.c +0 −14
python/ext/aubio-types.h+0−1
@@ -63,7 +63,6 @@ extern int PyAubio_IsValidVector (PyObject *input); · 62 unmodified lines
63extern PyObject *PyAubio_CFvecToArray (fvec_t * self);63extern PyObject *PyAubio_CFvecToArray (fvec_t * self);
64extern int PyAubio_ArrayToCFvec (PyObject * self, fvec_t *out);64extern int PyAubio_ArrayToCFvec (PyObject * self, fvec_t *out);
65 65
66extern PyObject * PyAubio_CCvecToPyCvec (cvec_t * self);
67extern int PyAubio_PyCvecToCCvec (PyObject *input, cvec_t *i);66extern int PyAubio_PyCvecToCCvec (PyObject *input, cvec_t *i);
68 67
69extern PyObject *PyAubio_CFmatToArray (fmat_t * self);68extern PyObject *PyAubio_CFmatToArray (fmat_t * self);
python/ext/py-cvec.c+0−14
@@ -32,20 +32,6 @@ new_py_cvec(uint_t length) { · 31 unmodified lines
32 return (PyObject*)vec;32 return (PyObject*)vec;
33}33}
34 34
35PyObject *
36PyAubio_CCvecToPyCvec (cvec_t * input) {
37 if (input == NULL) {
38 PyErr_SetString (PyExc_ValueError, "PyAubio_CCvecToPyCvec got a null cvec!");
39 return NULL;
40 }
41 Py_cvec* vec = (Py_cvec*) PyObject_New (Py_cvec, &Py_cvecType);
42 npy_intp dims[] = { input->length, 1 };
43 vec->norm = PyArray_SimpleNewFromData (1, dims, AUBIO_NPY_SMPL, input->norm);
44 vec->phas = PyArray_SimpleNewFromData (1, dims, AUBIO_NPY_SMPL, input->phas);
45 vec->length = input->length;
46 return (PyObject *)vec;
47}
48
49int35int
50PyAubio_PyCvecToCCvec (PyObject *input, cvec_t *i) {36PyAubio_PyCvecToCCvec (PyObject *input, cvec_t *i) {
51 if (PyObject_TypeCheck (input, &Py_cvecType)) {37 if (PyObject_TypeCheck (input, &Py_cvecType)) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t