Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 04ebea3

Browse files
author
Thomas Heller
committed
Merged revisions 74948 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r74948 | thomas.heller | 2009-09-19 12:04:54 +0200 (Sa, 19 Sep 2009) | 1 line Remove unused variable and static function to fix compiler warnings. ........
1 parent 7460098 commit 04ebea3

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

Modules/_ctypes/_ctypes.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3931,14 +3931,6 @@ PyTypeObject PyCFuncPtr_Type = {
39313931
/*
39323932
Struct_Type
39333933
*/
3934-
static int
3935-
IBUG(char *msg)
3936-
{
3937-
PyErr_Format(PyExc_RuntimeError,
3938-
"inconsistent state in CDataObject (%s)", msg);
3939-
return -1;
3940-
}
3941-
39423934
/*
39433935
This function is called to initialize a Structure or Union with positional
39443936
arguments. It calls itself recursively for all Structure or Union base
@@ -4009,12 +4001,9 @@ _init_pos_args(PyObject *self, PyTypeObject *type,
40094001
static int
40104002
Struct_init(PyObject *self, PyObject *args, PyObject *kwds)
40114003
{
4012-
StgDictObject *stgdict = PyObject_stgdict(self);
4013-
40144004
/* Optimization possible: Store the attribute names _fields_[x][0]
40154005
* in C accessible fields somewhere ?
40164006
*/
4017-
40184007
if (!PyTuple_Check(args)) {
40194008
PyErr_SetString(PyExc_TypeError,
40204009
"args not a tuple?");

0 commit comments

Comments
 (0)