Skip to content

Commit b9d80ae

Browse files
committed
remove unnecessary #include and unused typemap
1 parent 681281b commit b9d80ae

1 file changed

Lines changed: 0 additions & 31 deletions

File tree

src/gstype_python.i

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616

1717
%{
18-
#include <Field.h>
1918
#include <ctime>
2019
#include <datetime.h>
2120
#include <limits>
@@ -1317,36 +1316,6 @@ static bool convertToFieldWithType(GSRow *row, int column, PyObject* value, GSTy
13171316

13181317
%typemap(doc, name = "query_list") (GSQuery* const* queryList, size_t queryCount) "list[Query] query_list";
13191318

1320-
/**
1321-
* Typemaps for set_field_by_byte_array() function
1322-
*/
1323-
%typemap(in) (const int8_t *fieldValue, size_t size) (int i) {
1324-
if (!PyList_Check($input)) {
1325-
PyErr_SetString(PyExc_ValueError, "Expected a List");
1326-
SWIG_fail;
1327-
}
1328-
$2 = (int)PyInt_AsLong(PyLong_FromSsize_t(PyList_Size($input)));
1329-
$1 = NULL;
1330-
if ($2 > 0) {
1331-
$1 = (int8_t *) malloc($2 * sizeof(int8_t));
1332-
if ($1 == NULL) {
1333-
PyErr_SetString(PyExc_ValueError, "Memory allocation error");
1334-
SWIG_fail;
1335-
}
1336-
i = 0;
1337-
while (i < $2) {
1338-
$1[i] = (int8_t)PyInt_AsLong(PyList_GetItem($input,i));
1339-
i++;
1340-
}
1341-
}
1342-
}
1343-
1344-
%typemap(freearg) (const int8_t *fieldValue, size_t size) {
1345-
if ($1) {
1346-
free((void *) $1);
1347-
}
1348-
}
1349-
13501319
/**
13511320
* Typemaps input for multi_get() function
13521321
*/

0 commit comments

Comments
 (0)