diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-09-20 12:38:16 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-09-20 12:38:16 +0400 |
commit | bba54a051ad98d2c1333cea71836fc21e0730a14 (patch) | |
tree | 018213ec6fb54750c752eee27205045967300a69 /source | |
parent | 16e21f49f78b3d7b02d92cbc7a2ce547365600ac (diff) |
i18n: fake_gettext is no longer needed for python
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/python/generic/blf_py_api.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/source/blender/python/generic/blf_py_api.c b/source/blender/python/generic/blf_py_api.c index 2b1cbaf7af5..abf5ee7bada 100644 --- a/source/blender/python/generic/blf_py_api.c +++ b/source/blender/python/generic/blf_py_api.c @@ -397,26 +397,6 @@ static PyObject *py_blf_gettext(PyObject *UNUSED(self), PyObject *value) return Py_INCREF(value), value; } } - -PyDoc_STRVAR(py_blf_fake_gettext_doc, -".. function:: fake_gettext(msgid)\n" -"\n" -" Just tag the msgid.\n" -"\n" -" :arg msgid: the source string.\n" -" :type msgid: string\n" -" :return: the source string.\n" -" :rtype: string\n" -); -static PyObject *py_blf_fake_gettext(PyObject *UNUSED(self), PyObject *value) -{ - if (!PyUnicode_Check(value)) { - PyErr_SetString(PyExc_TypeError, "blf.fake_gettext expects a single string argument"); - return NULL; - } - - return Py_INCREF(value), value; -} #endif /* INTERNATIONAL */ /*----------------------------MODULE INIT-------------------------*/ @@ -436,7 +416,6 @@ static PyMethodDef BLF_methods[] = { {"load", (PyCFunction) py_blf_load, METH_VARARGS, py_blf_load_doc}, #ifdef INTERNATIONAL {"gettext", (PyCFunction) py_blf_gettext, METH_O, py_blf_gettext_doc}, - {"fake_gettext", (PyCFunction) py_blf_fake_gettext, METH_O, py_blf_fake_gettext_doc}, #endif {NULL, NULL, 0, NULL} }; |