code cleanup: unused defines, shadowing and unintended enum-as-variable.
[blender.git] / source / blender / python / intern / gpu.c
index 69fe0c48a41707bd3778cfdd39c2b52092d5c341..747390abd0ded01cc786d2fd965658e9fcee4c63 100644 (file)
@@ -131,6 +131,7 @@ static PyObject *PyInit_gpu(void)
        PyDict_SetItemString(d, # f, val);               \
        Py_DECREF(val)
 
+#if 0  /* UNUSED */
 #define PY_OBJ_ADD_ID(d, s, f)                      \
        val = PyUnicode_FromString(&s->f->id.name[2]);  \
        PyObject_SetAttrString(d, # f, val);            \
@@ -145,6 +146,7 @@ static PyObject *PyInit_gpu(void)
        val = PyUnicode_FromString(s->f);    \
        PyObject_SetAttrString(d, # f, val); \
        Py_DECREF(val)
+#endif
 
 PyDoc_STRVAR(GPU_export_shader_doc,
 "export_shader(scene, material)\n"