[Python-checkins] r74948 - python/trunk/Modules/_ctypes/_ctypes.c
thomas.heller
python-checkins at python.org
Sat Sep 19 12:04:54 CEST 2009
Author: thomas.heller
Date: Sat Sep 19 12:04:54 2009
New Revision: 74948
Log:
Remove unused variable and static function to fix compiler warnings.
Modified:
python/trunk/Modules/_ctypes/_ctypes.c
Modified: python/trunk/Modules/_ctypes/_ctypes.c
==============================================================================
--- python/trunk/Modules/_ctypes/_ctypes.c (original)
+++ python/trunk/Modules/_ctypes/_ctypes.c Sat Sep 19 12:04:54 2009
@@ -4012,14 +4012,6 @@
/*
Struct_Type
*/
-static int
-IBUG(char *msg)
-{
- PyErr_Format(PyExc_RuntimeError,
- "inconsistent state in CDataObject (%s)", msg);
- return -1;
-}
-
/*
This function is called to initialize a Structure or Union with positional
arguments. It calls itself recursively for all Structure or Union base
@@ -4090,12 +4082,9 @@
static int
Struct_init(PyObject *self, PyObject *args, PyObject *kwds)
{
- StgDictObject *stgdict = PyObject_stgdict(self);
-
/* Optimization possible: Store the attribute names _fields_[x][0]
* in C accessible fields somewhere ?
*/
-
if (!PyTuple_Check(args)) {
PyErr_SetString(PyExc_TypeError,
"args not a tuple?");
More information about the Python-checkins
mailing list