code cleanup: unused vars, make other vars static.

This commit is contained in:
Campbell Barton
2013-04-10 22:49:50 +00:00
parent 3b399edf7d
commit 8c1cb10cfd
17 changed files with 25 additions and 38 deletions

View File

@@ -330,7 +330,7 @@ static PyObject *KX_PythonSeq_get(PyObject *self, PyObject *args)
return def;
}
PySequenceMethods KX_PythonSeq_as_sequence = {
static PySequenceMethods KX_PythonSeq_as_sequence = {
NULL, /* Cant set the len otherwise it can evaluate as false */
NULL, /* sq_concat */
NULL, /* sq_repeat */
@@ -349,7 +349,7 @@ static PyMappingMethods KX_PythonSeq_as_mapping = {
0, /* mp_ass_subscript */
};
PyMethodDef KX_PythonSeq_methods[] = {
static PyMethodDef KX_PythonSeq_methods[] = {
// dict style access for props
{"get",(PyCFunction) KX_PythonSeq_get, METH_VARARGS},
{NULL,NULL} //Sentinel