mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 17:06:39 +09:00
systemd-python: remove unneeded ifdef for query_unique
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
518dc5dff5
commit
dd37d563ba
@@ -508,7 +508,6 @@ Journal_iternext(PyObject *self)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef SD_JOURNAL_FOREACH_UNIQUE
|
||||
PyDoc_STRVAR(Journal_query_unique__doc__,
|
||||
"query_unique(field) -> a set of values\n\n"
|
||||
"Returns a set of unique values in journal for given `field`.\n"
|
||||
@@ -554,7 +553,6 @@ Journal_query_unique(Journal *self, PyObject *args)
|
||||
Py_DECREF(key);
|
||||
return value_set;
|
||||
}
|
||||
#endif //def SD_JOURNAL_FOREACH_UNIQUE
|
||||
|
||||
static PyObject *
|
||||
Journal_get_data_threshold(Journal *self, void *closure)
|
||||
@@ -637,10 +635,8 @@ static PyMethodDef Journal_methods[] = {
|
||||
Journal_wait__doc__},
|
||||
{"seek_cursor", (PyCFunction)Journal_seek_cursor, METH_VARARGS,
|
||||
Journal_seek_cursor__doc__},
|
||||
#ifdef SD_JOURNAL_FOREACH_UNIQUE
|
||||
{"query_unique", (PyCFunction)Journal_query_unique, METH_VARARGS,
|
||||
Journal_query_unique__doc__},
|
||||
#endif
|
||||
{NULL} /* Sentinel */
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user